jbake
jbake copied to clipboard
Support for Handlebars templates
Hi
Is there plans to support Handlebars or another mustache implementation for templating?
Thanks
There aren't any plans at present to add support no.
I've not used any Mustache impl myself but first step would be to check if one impl provides the same functionality as the others support for use in JBake. If so it should be quite straight forward to add support.
For any new template providers, I suggest implementing template provider injection mechanism (probably via plugins) instead of adding it in the core. That way, more providers can be added without affecting core build.
If we can add support for new template engines without requiring a change in core that would be fantastic. Definitely a goal to strive for.
A bit old but just pushed a draft about mustache support (which is close to handlebars): https://github.com/rmannibucau/jbake/commit/354971c947bf079edd73ea2ec9662e375d29dc60
Still requires some love to add needed helpers but can be a start if somebody still desires it.
Thanks @rmannibucau