Render uses wrong poly-target when specifying output file
otherjoel opened this issue · 1 comments
otherjoel commented
I think this is a relatively recent regression. In a project containing only the following:
- A
pollen.rkt
containing only asetup
module that defines/provides a value forpoly-targets
of'(html txt)
- A simple
test.poly.pm
file (#lang pollen
)
Rendering to .txt
by specifying the desired output file produces an HTML file instead:
> raco pollen render test.txt
pollen: rendering test.txt
pollen: rendering /test.poly.pm as html
pollen: rendered /test.html (389 ms)
It still works if you specify the output format explicitly with -t
though:
> raco pollen render -t txt test.poly.pm
pollen: rendering test.poly.pm
pollen: rendering /test.poly.pm as txt
pollen: rendered /test.txt (380 ms)
mbutterick commented
relatively recent regression
Thanks! Seems to have been lurking since November 2019. Fixed by #238.