arale-templatable
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -122,3 +122,3 @@ # 基本的事件操作 | ||
var Templatable = require('arale-templatable'); | ||
var Handlebars = require('handlebars')['default']; | ||
var Handlebars = require('spm-handlebars')['default']; | ||
var WidgetC = Widget.extend({ | ||
@@ -125,0 +125,0 @@ |
{ | ||
"name": "arale-templatable", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "处理组件的模板渲染,混入到 Widget 中使用。", | ||
@@ -35,3 +35,3 @@ "keywords": [ | ||
"dependencies": { | ||
"handlebars": "~3.0.0" | ||
"spm-handlebars": "~1.3.1" | ||
}, | ||
@@ -38,0 +38,0 @@ "devDependencies": { |
var $ = require('jquery'); | ||
var Handlebars = require('handlebars')['default']; | ||
var Handlebars = require('spm-handlebars')['default']; | ||
@@ -4,0 +4,0 @@ var compiledTemplates = {}; |
var Widget = require('arale-widget'); | ||
var Templatable = require('../src/templatable'); | ||
var Handlebars = require('handlebars')['default']; | ||
var Handlebars = require('spm-handlebars')['default']; | ||
var $ = require('spm-jquery'); | ||
@@ -308,19 +308,2 @@ | ||
}); | ||
it('support partial runtime', function () { | ||
var WidgetA = TemplatableWidget.extend({ | ||
templatePartials: { | ||
testPartials: '{{title}}' | ||
} | ||
}); | ||
var template = require('./a'); | ||
var t = globalVar.t = new WidgetA({ | ||
template: template, | ||
model: { | ||
title: 'title' | ||
} | ||
}).render(); | ||
expect(t.element.html()).to.be('title'); | ||
}); | ||
}); |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
0
21375
10
431
+ Addedspm-handlebars@~1.3.1
+ Addedasync@0.2.10(transitive)
+ Addedoptimist@0.3.7(transitive)
+ Addedspm-handlebars@1.3.1(transitive)
+ Addeduglify-js@2.3.6(transitive)
- Removedhandlebars@~3.0.0
- Removedalign-text@0.1.4(transitive)
- Removedcamelcase@1.2.1(transitive)
- Removedcenter-align@0.1.3(transitive)
- Removedcliui@2.1.0(transitive)
- Removeddecamelize@1.2.0(transitive)
- Removedhandlebars@3.0.8(transitive)
- Removedis-buffer@1.1.6(transitive)
- Removedkind-of@3.2.2(transitive)
- Removedlazy-cache@1.0.4(transitive)
- Removedlongest@1.0.1(transitive)
- Removedminimist@0.0.10(transitive)
- Removedoptimist@0.6.1(transitive)
- Removedrepeat-string@1.6.1(transitive)
- Removedright-align@0.1.3(transitive)
- Removedsource-map@0.5.7(transitive)
- Removeduglify-js@2.8.29(transitive)
- Removeduglify-to-browserify@1.0.2(transitive)
- Removedwindow-size@0.1.0(transitive)
- Removedwordwrap@0.0.2(transitive)
- Removedyargs@3.10.0(transitive)