nanoc / features

Collection of feature requests
2 stars 1 forks source link

Allow filters to generate content for other filters #55

Open denisdefreyne opened 4 years ago

denisdefreyne commented 4 years ago

Currently, filters only generate one kind of output.

It would be useful to let filters also generate other kinds of output. For example:

Ideally, the non-primary output content would be lazily-generated, i.e. only generated when another filter actually uses the data.

gpakosz commented 4 years ago

Well... filters being able to generate content for other filters...

I don't how what it means with respect to reps and the ability to write different snapshots to different files.

At least, what would be useful is to have a way to let filter pin some additional data to an item: for example a :mathjax filter would be able to "mark" an item with "hey I've found some LaTeX in there!" and later during the layout phase you can know "oh some LaTeX got found, let's link to the MathJaX css stylesheet"