contemplate
Advanced tools
Comparing version 0.0.3 to 0.0.5
/*! | ||
/*! | ||
* contemplate | ||
@@ -14,13 +14,13 @@ * JavaScript pico template engine | ||
/** | ||
* Contemplate | ||
* Contemplate, | ||
* | ||
* @param {String} template template | ||
* @param {Object} data data | ||
* @return {String} | ||
* @return {String} | ||
* @api private | ||
*/ | ||
exports.contemplate = function (template, data) { | ||
return template.replace(regexp, function (tag, key) { | ||
return contemplate.find(data, key); | ||
var contemplate = exports.contemplate = function (template, data) { | ||
return template.replace(regexp, function (tag, key) { | ||
return contemplate.find(data, key); | ||
}); | ||
@@ -37,7 +37,7 @@ }; | ||
/** | ||
* Find the property of 'data' located in 'path' | ||
* Find the property of 'data' located in 'path'. | ||
* | ||
* @param {Object} data data | ||
* @param {String} path path of the property to find | ||
* @return the property of 'data' located in 'path' | ||
* @return the property of 'data' located in 'path' | ||
* @api private | ||
@@ -49,4 +49,4 @@ */ | ||
path.split('.').forEach(function (part) { | ||
temp = temp[part]; | ||
path.split('.').forEach(function (part) { | ||
temp = temp[part]; | ||
}); | ||
@@ -53,0 +53,0 @@ |
{ | ||
"author": "Enrico Marino <enrico.marino@email.com> (http://onirame.no.de)", | ||
"name": "contemplate", | ||
"description": "JavaScript pico small peta fast template engine", | ||
"version": "0.0.3", | ||
"description": "JavaScript pico template engine", | ||
"version": "0.0.5", | ||
"homepage": "https://github.com/onirame/contemplate", | ||
@@ -7,0 +7,0 @@ "repository": { |
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
3933