velocityjs
Advanced tools
Comparing version 0.10.0 to 0.10.1
@@ -0,1 +1,5 @@ | ||
## 0.10.1 2017-11-10 | ||
- fix: #set variable key not work [!91](https://github.com/shepherdwind/velocity.js/issues/92) | ||
## 0.10.0 2017-11-08 | ||
@@ -2,0 +6,0 @@ |
{ | ||
"name": "velocityjs", | ||
"description": "Velocity Template Language(VTL) for JavaScript", | ||
"version": "0.10.0", | ||
"version": "0.10.1", | ||
"license": "MIT", | ||
@@ -6,0 +6,0 @@ "keywords": [ |
@@ -55,2 +55,3 @@ module.exports = function(Velocity, utils){ | ||
const self = this; | ||
//console.log(val); | ||
@@ -61,3 +62,9 @@ utils.some(ref.path, function(exp, i){ | ||
var key = exp.id; | ||
if (exp.type === 'index') key = key.value; | ||
if (exp.type === 'index') { | ||
if (exp.id) { | ||
key = self.getLiteral(exp.id); | ||
} else { | ||
key = key.value; | ||
} | ||
} | ||
@@ -64,0 +71,0 @@ if (isEnd) { |
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
383926
2744