raco pollen render doesn't respect omitted-path? (pagetree specifically) #189

Closed
opened 5 years ago by sorawee · 3 comments
sorawee commented 5 years ago (Migrated from github.com)

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:

pollen: rendering generated pagetree for directory /path/to/.sass-cache

appearing when I raco pollen render -s.

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: ``` pollen: rendering generated pagetree for directory /path/to/.sass-cache ``` appearing when I `raco pollen render -s`.
mbutterick commented 5 years ago (Migrated from github.com)

As the docs indicate, omitted-path? only affects raco pollen render and raco pollen publish.

I don’t carry this behavior through to automatic pagetrees because that’s what .ptree files are for.

As the [docs indicate](http://docs.racket-lang.org/pollen/Setup.html#%28def._%28%28lib._pollen%2Fsetup..rkt%29._setup~3aomitted-path~3f%29%29), `omitted-path?` only affects `raco pollen render` and `raco pollen publish`. I don’t carry this behavior through to automatic pagetrees because that’s what `.ptree` files are for.
mbutterick commented 5 years ago (Migrated from github.com)

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 your omitted-path? predicate and apply it to the result of directory->pagetree, AFAICT you’ll get the behavior you want.

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 your `omitted-path?` predicate and apply it to the result of `directory->pagetree`, AFAICT you’ll get the behavior you want.
sorawee commented 5 years ago (Migrated from github.com)

Alright, that's fair. Closing.

Alright, that's fair. Closing.
Sign in to join this conversation.
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: mbutterick/pollen#189
Loading…
There is no content yet.