Get the handlebar instance
See original GitHub issueI’m trying to extend handlebars with helpers from https://github.com/shannonmoeller/handlebars-layouts. To register the helpers i need access to the underlying handlebars
instance of express-handlebars.
How can i get the instance?
Issue Analytics
- State:
- Created 5 years ago
- Reactions:2
- Comments:5
Top Results From Across the Web
Handlebars
Get Started → ... Handlebars provides the power necessary to let you build semantic templates ... Handlebars is largely compatible with Mustache templates....
Read more >Getting Started with Handlebars.js - Sabe.io
Use the templating engine library Handlebars.js to build semantic templates, inject context data, and utilize helpers.
Read more >A Beginner's Guide to Handlebars - SitePoint
In your JavaScript file we firstly need to retrieve the template from the HTML document. In the following example, we'll use the ID...
Read more >How can I get an instance of a model's controller inside a ...
I've got a sticky situation that I keep on running into: The need for a new instance of a controller inside a handlebars...
Read more >Handlebars Tutorial - YouTube
Get the Code Here : http://goo.gl/h81zZAIn this video we'll learn Handlebars by walking through numerous examples. Handlebars is a superset ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
The code above allows handlebars-layouts to register, but doesn’t allow it to work with express-handlebars.
Calling
{{#extend "layouts/foo"}}
fails with the errorThis is how I’m setting the two up
I can fix the issue by manually registering the partial with handlebars. Is there a way to avoid that?