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:
@@ -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') {
|
||||
|
||||
Reference in New Issue
Block a user