On Mar 28, 2019, at 6:23 AM, Ifeoluwapo Eleyinafe <eleyi...@gmail.com> wrote:
I think I can pull from metas using 'here-path but I don't know how to access metas from pollen.rkt. I can do so from the template file but then I won't be able to use the data in my tag definitions.
Can we see your pollen.rkt
? Anyhow, it’s very likely that you call (current-metas)
outside of tag functions.
(current-metas)
is “undefined” outside of tag functions, which make sense if you think about it: pollen.rkt
can be used by several Pollen markup files, and each markup file can define different metas. Therefore, outside of tag functions, the concept of metas is not well-defined.
On the other hand, a tag function is invoked from markup files, so it's possible to associate metas to (current-metas).
--
You received this message because you are subscribed to the Google Groups "Pollen" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pollenpub+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
(define (output-filename meta-source)
(path->string
(car (reverse (explode-path (string->path (select-from-metas 'here-path meta-source)))))))
(output-filename (current-metas))
To unsubscribe from this group and stop receiving emails from it, send an email to poll...@googlegroups.com.