I'm using pollen, I have this directory setup
.
|- template.html.p
|- template.html
|- topic-welcome.html
|- topic-welcome.html.p
|- subdir
| |- index.poly.p
index.poly.p contents are
#lang pollen
◊(define-meta template (list "topic-welcome.html" "topic-welcome.md"))
◊title{Hello, new topic}
in pollen.rkt i have
(module setup racket/base
(provide (all-defined-out))
(define poly-targets '(md sexp html)))
and markdown is recognized as the main output format.
I ran this in a repl opened in drracket in the file pollen.rkt
> (parameterize ([current-poly-target 'html])
(displayln (get-template-for (simple-form-path "subdir/index.poly.pm")))
(displayln (select-from-metas 'template (simple-form-path "subdir/index.poly.pm"))))
${FULL_PATH}/./template.html
(list topic-welcome.html topic-welcome.md)
I am bashing my head against the wall, pardon my way of expressing myself, but I'm very tired and frustrated to what seems to be the most straightforward use of define-meta
, it is likely that I made a mistake, but I really can't show code because it's for work. I don't know what to do, any ideas?