Closed ijunaid8989 closed 7 years ago
If you do HandlebarsTemplates
in a javascript console on the page; what is the result.
I think its 'app/templates/header' without the extension (although I could be wrong)
or even more particular; what is this.template? if its not a function.
But the thing is template
is a method in view which is not available in render
this worked template: HandlebarsTemplates['header']
I am working in handlebars withing backbone alongside with Rails.
My application.js file looks like
my main app file
and this is my view file
That's not giving me any kind of error but also not showing anything in my browsers as well. But if do this
@$el.html(@template())
then I got some erorrs as
Uncaught TypeError: this.template is not a function