Closed pmatos closed 5 years ago
Oh. Yes. I don't remember the history off the top of my head. From a quick glance at the code:
The uri-prefix
template variable ~= the current-uri-prefix
parameter. It's just "stringified" so that if the parameter value is #f
, the template variable value is ""
, which is what you'd want using it in a texty template.
That should be added to https://github.com/greghendershott/frog/blob/master/frog/frog.scrbl#L503 so it appears in https://docs.racket-lang.org/frog/templates.html#(part._page-template).
Looking more carefully: The uri-prefix
template variable is supplied to all three templates, {page post index}-template.html
, so all three spots in the doc should be updated.
As with any doc change, this won't be reflected at https://docs.racket-lang.org/frog/templates.html until the next build server run (normally within 24 hours). However if you raco update frog
it will should your local docs with the change.
Variable
uri-prefix
is not documented. I checked, however that's valid and used in the example blog.