on-internet
← Community

Passing undefined to Handlebars.compile

Stack Overflow ·

I just started with Handlebars.js and running into a small problem I'm using version 1.0.0 width data I get from JSON via jQuery. Everything works fine, my data gets pulled through to the template and the data gets displayed like expected, however I keep getting this error. Error: You must pass a string or Handlebars AST to Handlebars.compile. You passed undefined When I log source in the console I get this, I know it's not a string but this is what this tutorial explains http://javascriptplayground.com/blog/2012/05/javascript-templating-handlebars-tutorial/. Am I wrong? {{#sets}} <li class="p

Comments

Sign in or sign up to comment and upvote.

No comments yet.