jbake icon indicating copy to clipboard operation
jbake copied to clipboard

Support for Handlebars templates

Open giflw opened this issue 7 years ago • 5 comments

Hi

Is there plans to support Handlebars or another mustache implementation for templating?

Thanks

giflw avatar Jun 02 '17 17:06 giflw

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.

jonbullock avatar Jun 05 '17 22:06 jonbullock

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.

manikmagar avatar Aug 15 '17 14:08 manikmagar

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.

jonbullock avatar Sep 17 '17 11:09 jonbullock

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.

rmannibucau avatar Jan 04 '21 17:01 rmannibucau

Thanks @rmannibucau

jonbullock avatar Jan 19 '21 23:01 jonbullock