Search code examples
backbone.jshandlebars.jsbackbone-boilerplate

Backbone Boilerplate problems with command release and Handlebars


I cant seem to get this to work. I am using BBB-Handlebars. When I use this during development, the application renders perfectly and I have no issues. As soon as I run the command BBB release and point my application to the built and compiled require.js file, my templates don't render. For example, my templates will render with {{model.someAttribute}} instead of {{The models attribute}}. So its keeping the brackets intact and for some reason Handlebars is treating the entire template as Html. Its not rendering out the data. I have tried different combinations by editing the grunt.js file, but still no luck. Any ideas?


Solution

  • Anyone else having this issue, I changed the following:

    grunt.registerTask("debug", "clean lint jst requirejs concat stylus:compile");
    

    To:

    grunt.registerTask("debug", "clean lint jst handlebars requirejs concat");
    

    I don't need stylus, so I removed it. Just added Handlebars task and seemed to sort out the issue. Let me know if you are still having problems.