From a82ef2ab80c44d39002fa48b7a3683c46b9baec8 Mon Sep 17 00:00:00 2001 From: Jay McCarthy Date: Wed, 28 Jan 2009 15:33:18 +0000 Subject: [PATCH] gotcha svn: r13300 --- collects/web-server/scribblings/templates.scrbl | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/collects/web-server/scribblings/templates.scrbl b/collects/web-server/scribblings/templates.scrbl index 2070236f00..5755aedfb9 100644 --- a/collects/web-server/scribblings/templates.scrbl +++ b/collects/web-server/scribblings/templates.scrbl @@ -165,7 +165,16 @@ You must write: }| as your template: literal @"@"s must be replaced with @"@\"@\"". -The other gotcha is that since the template is compiled into a Scheme program, only its results will be printed. For example, suppose +The @at-reader-ref is not smart enough to know that identifier should end at the start of XML tags. So, +@verbatim[#:indent 2]|{ + Fastest @thing in the @place! +}| +will complain that the identifier @scheme[place!] is undefined. You can subvert this by explicitly delimiting the identifer: +@verbatim[#:indent 2]|{ + Fastest @thing in the @|place|! +}| + +Another gotcha is that since the template is compiled into a Scheme program, only its results will be printed. For example, suppose we have the template: @verbatim[#:indent 2]|{