(simple) dependency tracking support #168

Closed
opened 7 years ago by lobisquit · 4 comments
lobisquit commented 7 years ago (Migrated from github.com)

Hi!

I am currently writing my CV with Pollen and code in pollen.rkt file has got really messy.

So I decided to split it into some Racket files to require from the main pollen.rkt source. Everything renders properly, but modifications in dependencies are not tracked, as specified in the documentation.

I agree with the design decision, but is there some way to tweak Pollen to track a fixed list of rkt files (other than the main one)?

Hi! I am currently writing my CV with Pollen and code in `pollen.rkt` file has got really messy. So I decided to split it into some Racket files to require from the main `pollen.rkt` source. Everything renders properly, but modifications in dependencies are not tracked, as specified in the [documentation](http://docs.racket-lang.org/pollen/Cache.html?q=dependency#%28part._.Scope_of_dependency_tracking%29). I agree with the design decision, but is there some way to tweak Pollen to track a **fixed list** of `rkt` files (other than the main one)?
lobisquit commented 7 years ago (Migrated from github.com)

Nevermind, found this discussion: basically changing another rkt in watch-list would just recompile everything anyway (inlcuded untouched pollen.rkt), so it is equivalent to keep no cache at all.

Nevermind, found [this discussion](https://groups.google.com/forum/#!topic/pollenpub/tUHfr8RxVFs): basically changing another `rkt` in watch-list would just recompile everything anyway (inlcuded untouched `pollen.rkt`), so it is equivalent to keep no cache at all.
mbutterick commented 7 years ago (Migrated from github.com)

I’m persuaded that it could be more useful than deactivating the cache altogether. It has been added as the new setup value compile-cache-watchlist.

I’m persuaded that it could be more useful than deactivating the cache altogether. It has been added as the new setup value `compile-cache-watchlist`.
mbutterick commented 7 years ago (Migrated from github.com)

Actually let's call it cache-watchlist instead, since it affects both the render cache and compile cache.

Actually let's call it `cache-watchlist` instead, since it affects both the render cache and compile cache.
lobisquit commented 7 years ago (Migrated from github.com)

Thanks for the support 👍

Thanks for the support 👍
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#168
Loading…
There is no content yet.