Closed ghost closed 9 years ago
What is {{!< notDefault }}
? I haven't seen this Handlebars syntax before.
Ghost and express-hbs each use that syntax to extend Handlebars templates. http://docs.ghost.org/themes/structure/#partials- https://github.com/barc/express-hbs#layouts
I thought it was a standard handlebars feature, but after searching the Handlebars docs, I think perhaps not?
Sorry for the confusion.
So what exactly are you trying to accomplish here? They might be another way I can help.
I appreciate the offer, but that won't be necessary. Once I realized it wasn't part of the spec I restructured my templates to achieve what I wanted. We are considering using express-handlebars to customize an angular web app prior to delivery. Seems to work well. Thanks.
server.js includes the following...
views/test.handlebars includes
views/templates includes two templates; default.handlebars and notDefault.handlebars.
When test is rendered, it always uses the default template unless I pass the template in during render via
This works as expected. Am I missing something or is this not currently supported? I am using express-hbs v1.1.0 and express 4.
Thanks