cryogen-project / cryogen-core

Cryogen's core
Eclipse Public License 1.0
69 stars 62 forks source link

Enable postprocessing of article HTML #152

Closed holyjak closed 3 years ago

holyjak commented 3 years ago

... right before the article is written to the disk.

Add :postprocess-article-html-fn config option that will be called on the article (page/post) after it is transformed from markup to HTML.

This can be used e.g. to run it through Selmer so that you can use Selmer templating in your markup and get it processed - see #139 for the original request for that.

holyjak commented 3 years ago

Tested on my blog both with and without the new config option. See the example from cryogen-project/cryogen-docs#39