Clarifying syntax in docs
This commit is contained in:
parent
ce6eab6f8e
commit
5bd12bb6f1
|
@ -2,6 +2,7 @@
|
||||||
@(require "web-server.rkt")
|
@(require "web-server.rkt")
|
||||||
@(require (for-label web-server/servlet
|
@(require (for-label web-server/servlet
|
||||||
web-server/templates
|
web-server/templates
|
||||||
|
racket/include
|
||||||
racket/promise
|
racket/promise
|
||||||
racket/list
|
racket/list
|
||||||
xml))
|
xml))
|
||||||
|
@ -358,8 +359,8 @@ the template to be unescaped, then create a @racket[cdata] structure:
|
||||||
|
|
||||||
@section{API Details}
|
@section{API Details}
|
||||||
|
|
||||||
@defform[(include-template path)]{
|
@defform[(include-template path-spec)]{
|
||||||
Compiles the template at @racket[path] using the @at-reader-ref syntax within the enclosing lexical context.
|
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:
|
Example:
|
||||||
@racketblock[
|
@racketblock[
|
||||||
|
|
Loading…
Reference in New Issue
Block a user