-
Notifications
You must be signed in to change notification settings - Fork 104
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Panini is incompatible with Handlebars #32
Comments
Panini is a Handlebars compiler, so it's going to try and parse that stuff itself instead of letting it pass through to the client. To get around this, you can write a "raw" Handlebars helper that skips compiling of everything inside of it. In the ZURB Template, create the file module.exports = function(content) {
return content.fn();
} Then call the helper with four braces and no {{{{raw}}}}
Nothing inside here will be parsed in the build process.
{{{{/raw}}}} |
Just what I needed. Thanks @gakimball |
i've juste used this trick for smth ...
is translated to :
|
I'm new to Foundation 6 and Handlebars. So please forgive my ignorance. This post is the closest I've seen to what I'm looking for. How are you including handlebars in your foundation 6? I've tried several different methods via import directly into app.js or through a dependancies.js and I end up with compile errors. UPDATE: |
I've been trying to use Handlebars inside my Zurb Foundation 6 Template with Gulp and Panini, but it seems like Panini is stripping out the Handlebars template tags from my HTML.
Here's my markup:
and my Javascript:
I am expecting to receive a list of projects from my dataset based upon the template provided, but instead I receive the markup with all of the Handlebars tags ripped out:
I'd like to use Handlebars and Panini together but it seems like it's incompatible. When I run the exact same markup with the exact same script outside of a Zurb Template, everything works fine...
Any help with this would be greatly appreciated!
The text was updated successfully, but these errors were encountered: