You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using v0.10.2, if commonjs:true is set in options, then the output module JS file puts each template into a return statement, so the resulting file has multiple returns from the same function.
Using v0.10.2, if
commonjs:true
is set in options, then the output module JS file puts each template into areturn
statement, so the resulting file has multiple returns from the same function.Gruntfile.js:
The
/src
directory contains 2 files:src/one.hbs
src/two.hbs
The resulting
dist/templates.js
is:Note that the generated function has 2
return
statements, one for each template.This was discovered after an upgrade from v0.9.1 (which used Handlebars 2) to v0.10.2 (which uses Handlebars 3)
If I backdate grunt-contrib-handlebars to v0.9.1 then the generated
dist/templates.js
file is:which is the correct/expected output.
The text was updated successfully, but these errors were encountered: