Convert template spec to object literal

This allows for metadata to be associated with the template and a simplification of the template init logic.
This commit is contained in:
kpdecker
2014-01-19 17:32:25 -06:00
parent 8f07bbabea
commit 2812fe2775
4 changed files with 96 additions and 90 deletions
+1 -1
View File
@@ -32,7 +32,7 @@ describe('javascript-compiler api', function() {
});
it('should allow compilerInfo override', function() {
handlebarsEnv.JavaScriptCompiler.prototype.compilerInfo = function() {
return 'this.compilerInfo = "crazy";';
return 'crazy';
};
handlebarsEnv.VM.checkRevision = function(compilerInfo) {
if (compilerInfo !== 'crazy') {