raco pollen render doesn't respect omitted-path? (pagetree specifically)
#189
Closed
opened 6 years ago by sorawee
·
3 comments
Loading…
Reference in New Issue
There is no content yet.
Delete Branch '%!s(<nil>)'
Deleting a branch is permanent. It CANNOT be undone. Continue?
I setup
omitted-path?
to omit.sass-cache
. I confirm that it indeed omits this path for page rendering. However, it doesn't omit this path for pagetree generation.That is, I still see this line:
appearing when I
raco pollen render -s
.As the docs indicate,
omitted-path?
only affectsraco pollen render
andraco pollen publish
.I don’t carry this behavior through to automatic pagetrees because that’s what
.ptree
files are for.BTW a
.ptree
source can have Pollen commands inside it that generate all or part of the pagetree. IOW it doesn’t have to be a static tree of pagenodes. So if you want to take youromitted-path?
predicate and apply it to the result ofdirectory->pagetree
, AFAICT you’ll get the behavior you want.Alright, that's fair. Closing.