Comments (21)
+1 I am getting the error: Uncaught Error: Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version (>= 2.0.0) or downgrade your runtime to an older version (<= 1.0.rc.2).
from grunt-contrib-handlebars.
I feel that the Handlebars version should be the responsibility of the parent package, not the Grunt plugin. This could be accomplished using peerDependencies
or by accepting the compiler as an option to the plugin itself. See the discussion in gulp-handlebars
surrounding this.
from grunt-contrib-handlebars.
peerDependencies
are on their way out so maybe the second option is more suitable
from grunt-contrib-handlebars.
Handlebars 2.0.0-beta.1 has been released. I think it will not take too long to the release of the final version.
from grunt-contrib-handlebars.
Is there any work necessary on grunt-contrib-handlebars for using Handlebars 2.0.0?
from grunt-contrib-handlebars.
Is this grunt task compatible with Handlebars 2.0.0?
I am following this guide: http://danburzo.ro/grunt/chapters/handlebars/
and it only works with handlebars 1.3.0
Thanks!
from grunt-contrib-handlebars.
+1, I'm using this task with grunt-browserify and I had to downgrade Handlebars to 1.3.0
from grunt-contrib-handlebars.
Is there a branch where we can test grunt-contrib-handlebars
with handlebars 2.0.0?
From what I just saw, handlebars 2.0.0 works just well when I update the version in the grunt-contrib-handlebars package.json.
from grunt-contrib-handlebars.
I assume this is old news to you guys, but I just stumbled here after trying to upgrade my bpwer.json to use 2.0 for my client side templates (backbone)
Uncaught Error: Unknown template object: function
is printed when I load, so I'm interested in knowing why if someone can fill me in.
from grunt-contrib-handlebars.
If I remember correctly, that is because of the change in this function here: https://github.com/wycats/handlebars.js/blob/master/lib/handlebars/runtime.js#L25
from grunt-contrib-handlebars.
Same with me when precompiling using grunt and then using runtime 2.0
Wasgetting Uncaught Error: Unknown template object: function
downgraded to handlebars runtime 1.3.0 and fixes this issue.
from grunt-contrib-handlebars.
+1 for the "Unknown template object" error here too. I tried updating my local handlebars inside grunt-contrib-handlebars, using npm-check-updates, but it didn't fix things. Like @FranckErnewein, I downgraded my client-side library to get things working.
from grunt-contrib-handlebars.
+1
from grunt-contrib-handlebars.
in v0.9.0
from grunt-contrib-handlebars.
Thank you guys!
from grunt-contrib-handlebars.
Now it works fine with grunt-browserify and Handlebars 2.
Thank you 👍
from grunt-contrib-handlebars.
Can you please, please Upgrade this so it handlebars dependency is version 4.
from grunt-contrib-handlebars.
^+1 Support for handlebars 4 would be great
from grunt-contrib-handlebars.
+1
from grunt-contrib-handlebars.
+1 on support for handlebars 4.
from grunt-contrib-handlebars.
https://github.com/gruntjs/grunt-contrib-handlebars/releases/tag/v0.11.0
from grunt-contrib-handlebars.
Related Issues (20)
- Precompiled JST in <=IE9 HOT 2
- Partial's context is undefined
- Add support for Handlebars 3.x HOT 17
- Allow to specify Handlebars version HOT 1
- Add UMD support HOT 2
- How to add Custom Helpers HOT 2
- AMD requires 'handlebars' instead of just 'handlebars.runtime' HOT 1
- How to add runtime code to output file?
- handlebars with grunt HOT 1
- Update to Handlebars 4.*, precompiled templates not usable with latest bower version HOT 20
- Using commonjs:true generates incorrect JS code (0.10.2) HOT 2
- Declaring multiple AMD dependencies with a function
- 0.11? HOT 2
- Is "style" a keyword of grunt-contrib-handlebars
- options.separator gets normalized HOT 1
- Tests aren't passing with the current master branch HOT 1
- Can be this used from a file watcher?
- Still Maintained?
- Arbitrary Code Execution
- Does not return Template when Pre-Processing as a partial using AMD
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from grunt-contrib-handlebars.