pull/199/head
Matthew Butterick 6 years ago
parent 25ef0b9618
commit 5f1782b99c

@ -1 +1 @@
1553393594
1553784193

@ -159,7 +159,7 @@ Note that if @racket[_meta-source] is a relative path or pagenode, it is treated
@section[#:tag "core"]{Parameters}
@defparam[current-metas hash (or/c #f hash?) #:value #f]
@defparam[current-metas val (or/c #f hash?) #:value #f]
Holds the @racket[metas] of the current Pollen source. In tag functions, rather than pass @racket[metas] as an argument, you can refer to @racket[(current-metas)] within the body of the function. Likewise, if your tag function calls other tag functions, they can all invoke @racket[(current-metas)] instead of passing the value around.
@racket[(current-metas)] will also work in templates, holding the @racket[metas] of the source currently being rendered into the template.

Loading…
Cancel
Save