Skip to content

Commit 68437ae

Browse files
committedAug 27, 2015
Small fix for template use checking
1 parent f40e8b1 commit 68437ae

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
 

‎package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "worksmith",
3-
"version": "0.2.8",
3+
"version": "0.2.9",
44
"description": "A purely functional workflow engine ",
55
"main": "index.js",
66
"scripts": {

‎src/interpolation/Interpolator.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ Interpolator.prototype.rules = {
9393
},
9494
{
9595
name: "legacy {template:'...'} field resolver",
96-
match: function(value) { return "template" in value },
96+
match: function(value) { return Object.keys(value).length === 1 && "template" in value },
9797
action: function(interpolator, context, value) {
9898
console.warn("obsoleted functionality: { template: value }, use [hbs]..[/hbs] instead")
9999
var template = value.template

0 commit comments

Comments
 (0)
Please sign in to comment.