wycats/handlebars.js — Issue #173: Handlebars compiler doesnt finish closure with semi colon.
Author: raldred
Created: 2012-02-08 11:53:34+00:00
State: open

When compiling templates into javascript the handlebars compiler wraps in a closure, the closure call is not terminated with a semicolon
Therefore concatenating javascript files for production causes an `undefined is not a function` error

the code it's producing looks like this.

(function() {
//template stuff
})()

so concatenated with another lib you get

(function() {
//template stuff
})()(function() {
//other lib stuff
})();