Clarifying syntax in docs

This commit is contained in:
Jay McCarthy 2011-11-23 10:55:03 -07:00
parent ce6eab6f8e
commit 5bd12bb6f1

View File

@ -2,6 +2,7 @@
@(require "web-server.rkt")
@(require (for-label web-server/servlet
web-server/templates
racket/include
racket/promise
racket/list
xml))
@ -358,8 +359,8 @@ the template to be unescaped, then create a @racket[cdata] structure:
@section{API Details}
@defform[(include-template path)]{
Compiles the template at @racket[path] using the @at-reader-ref syntax within the enclosing lexical context.
@defform[(include-template path-spec)]{
Compiles the template at @racket[path-spec] using the @at-reader-ref syntax within the enclosing lexical context. The @racket[path-spec] is the same format used by @racket[include].
Example:
@racketblock[