@@ -51,10 +51,16 @@ These are project-wide pagetrees: @racket[articles-pagetree] contains a pagenode for every Pollen document contained in @racket[articles-path], and @racket[series-pagetree] contains a pagenode for every Pollen document in @racket[series-path]. The pagenodes themselves point to the rendered @tt{.html} targets of the source documents. +@defproc[(here-output-path) path?] + +Returns the path to the current output file, relative to @racket[current-project-root]. If no metas +are available, raises an error. This is like what you can get from the @tt{here} variable that Pollen +provides, except it is available outside templates. + @section{Metas and @code{txexpr}s} @defproc[(maybe-attr [key symbol?] [attrs txexpr-attrs?] [missing-expr any/c ""]) any/c] Find the value of @racket[_key] in the supplied list of attributes, returning the value of