gruntjs/grunt-contrib-handlebars

Partial pre-compiled output incorrect

Closed this issue · 1 comments

handlebars: {
          compile: {
            options: {
              amd: "true",
              namespace: false
            },

running handlebars task on file _mypartial.hbs

actual output in _mypartial.js has extra return

Handlebars.registerPartial("mypartial", return Handlebars.template(function (Handlebars,depth0,helpers,partials,data) {

expected output should not have an extra return

Handlebars.registerPartial("mypartial", Handlebars.template(function (Handlebars,depth0,helpers,partials,data) {

successful precompilation of partial is also shown here in @pdokas comment
#49

Handlebars.registerPartial("PARTIAL_NAME", Handlebars.template(function (Handlebars,depth0,helpers,partials,data) {

Looks like this is a duplicate of #45 from @mleavitt. Would be good to have his pull request integrated.