Comparing version 0.11.0 to 0.11.1
@@ -60,2 +60,12 @@ "use strict"; | ||
equal(countNamespaceChanges('<div><svg><title><h1>foobar</h1></title></svg></div><svg></svg>'), 3); | ||
}); | ||
test('it adds the provided revision to the template', function () { | ||
var ast = preprocess('{{foo}}'); | ||
var compiler = new TemplateCompiler({ | ||
revision: 'FOO.BAR' | ||
}); | ||
var program = compiler.compile(ast); | ||
ok(program.indexOf('revision: "FOO.BAR"') > -1); | ||
}); |
@@ -12,2 +12,3 @@ "use strict"; | ||
this.options = options || {}; | ||
this.revision = this.options.revision || "HTMLBars@VERSION_STRING_PLACEHOLDER"; | ||
this.fragmentOpcodeCompiler = new FragmentOpcodeCompiler(); | ||
@@ -98,2 +99,3 @@ this.fragmentCompiler = new FragmentJavaScriptCompiler(); | ||
indent+' isHTMLBars: true,\n' + | ||
indent+' revision: "' + this.revision + '",\n' + | ||
indent+' blockParams: ' + blockParams.length + ',\n' + | ||
@@ -100,0 +102,0 @@ indent+' cachedFragment: null,\n' + |
@@ -7,3 +7,3 @@ "use strict"; | ||
* See https://raw.githubusercontent.com/tildeio/htmlbars/master/LICENSE | ||
* @version 0.11.0 | ||
* @version v0.11.1 | ||
*/ | ||
@@ -10,0 +10,0 @@ |
@@ -11,2 +11,3 @@ import FragmentOpcodeCompiler from './fragment-opcode-compiler'; | ||
this.options = options || {}; | ||
this.revision = this.options.revision || "HTMLBars@v0.11.1"; | ||
this.fragmentOpcodeCompiler = new FragmentOpcodeCompiler(); | ||
@@ -97,2 +98,3 @@ this.fragmentCompiler = new FragmentJavaScriptCompiler(); | ||
indent+' isHTMLBars: true,\n' + | ||
indent+' revision: "' + this.revision + '",\n' + | ||
indent+' blockParams: ' + blockParams.length + ',\n' + | ||
@@ -99,0 +101,0 @@ indent+' cachedFragment: null,\n' + |
@@ -6,3 +6,3 @@ /* | ||
* See https://raw.githubusercontent.com/tildeio/htmlbars/master/LICENSE | ||
* @version 0.11.0 | ||
* @version v0.11.1 | ||
*/ | ||
@@ -9,0 +9,0 @@ |
var packagesConfig = { | ||
"version": "0.11.0", | ||
"revision": "0b46a9ff28ace55076f070a66db97b3310916009", | ||
"version": "0.11.1", | ||
"revision": "933f93953cc5730e8ae1697558484cd36574a487", | ||
"vendored": {}, | ||
@@ -5,0 +5,0 @@ "dependencies": { |
{ | ||
"name": "htmlbars", | ||
"version": "0.11.0", | ||
"version": "0.11.1", | ||
"description": "HTMLBars compiles Handlebars templates into document fragments rather than string buffers", | ||
@@ -41,3 +41,3 @@ "main": "dist/cjs/htmlbars.js", | ||
"ember-cli-sauce": "0.0.7", | ||
"git-repo-version": "0.0.2", | ||
"git-repo-version": "^0.1.2", | ||
"handlebars": "mmun/handlebars.js#new-ast-3238645f", | ||
@@ -44,0 +44,0 @@ "morph-range": "^0.1.2", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1602249
47026