can't use pagetree as argument to
raco pollen render
According to this comment.
(By the way, didn’t it used to be possible to specify a pagetree file explicitly, like raco pollen render posts.ptree? Maybe I’m hallucinating but I thought I had done this before. Now when I try this I get [no paths to render].)
@otherjoel I’m not clear how to reproduce the problem you observed. The attached test case seems to work OK. What is missing?
> raco pollen render test.ptree
pollen: rendering test.ptree
pollen: rendering /bar.txt.pp
pollen: rendered /bar.txt (158 ms)
pollen: rendering /foo.txt.pp
pollen: rendered /foo.txt (221 ms)
Yes, you're right that works.
Here's how I can reproduce the problem I was having. To your test case from #248, add a file
❯ ls -1 posts
❯ raco pollen render posts/test.ptree
pollen: rendering posts/test.ptree
pollen: [no paths to render]
You know what, I’m an idiot…the output file paths in the pagetree have to be relative to the current directory, not to the directory the pagetree file is in. Sorry for the bogus report!
OK I take it back. I thought I was an idiot but now I’m not so sure. The only reference to this that I could find in the docs is the last sentence of 14.5.1, which says:
Pagenodes can refer to files in subdirectories. Just write the pagenode as a path relative to the directory where the pagetree lives
OK, I see the problem. When a pagetree inside a subdirectory is passed to
raco pollen render, the pagenodes inside of that pagetree were not being calculated relative to that subdirectory.
Deleting a branch is permanent. It CANNOT be undone. Continue?