I've hit a roadblock trying to solve this issue. My goal is to incorporate hogan.js (via hogan-express) into a new expressjs application while also utilizing hogan.js on the front-end with Backbone, lodash, and other tools.
The layout I am using consists of:
...
{{> header }}
{{{ yield }}}
{{> footer }}
...
At the bottom of the layout, there is:
<script type="text/template">
{{> template }}
</script>
For now, the content within those delimited entries is managed by hogan-express. However, the template inserted in the {{> template }} call contains its own delimited entries as shown below:
<section>{{name}}</section>
I want these specific delimiters to be ignored by hogan-express so that hogan on the front-end can handle them instead.
I don't mind adjusting the delimiters for hogan-express. I attempted this change which worked, but it resulted in breaking the {{{ yield }}} call. I experimented with using <% %> as delimiters and modifying the yield to something like <%{ yield }%> (along with different variations), but none of my attempts were successful.
Does anyone have any suggestions on how I can implement custom delimiters in hogan-express without disrupting 'yields'?
Thank you!