Using handlebars in WordPress.
One approach we have taken is to mix handlebars templates into the standard WordPress theme templates.
We have a template function available in WordPress render_hbs_template
which will render a handlebars template using the data provided.
Under the hood render_hbs_template
uses this PHP class https://github.com/zordius/lightncandy
The render function handles some logic around caching the compiled templates to improve performance using these.
Here is an example single.php template of how this might be used to render an article.