Comparing version 1.0.6 to 1.1.0
{ | ||
"name": "rendy", | ||
"version": "1.0.6", | ||
"version": "1.1.0", | ||
"homepage": "https://github.com/coderaiser/rendy", | ||
@@ -5,0 +5,0 @@ "authors": [ |
@@ -13,3 +13,3 @@ (function(global) { | ||
* @param templ | ||
* @param view | ||
* @param data | ||
*/ | ||
@@ -24,7 +24,7 @@ function rendy(templ, data) { | ||
.forEach(function(param) { | ||
var str = data[param], | ||
expr = '{{\\s' + param + '\\s}}', | ||
regExp = RegExp(expr, 'g'); | ||
var name = '{{ ' + param + ' }}', | ||
str = data[param]; | ||
result = result.replace(regExp, str); | ||
while(~result.indexOf(name)) | ||
result = result.replace(name, str); | ||
}); | ||
@@ -31,0 +31,0 @@ |
{ | ||
"name": "rendy", | ||
"version": "1.0.6", | ||
"description": "simple template engine", | ||
"version": "1.1.0", | ||
"description": "simplest template engine", | ||
"main": "lib/rendy.js", | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
"test": "gulp test" | ||
}, | ||
@@ -26,4 +26,4 @@ "repository": { | ||
"gulp-mocha": "~2.0.0", | ||
"should": "~5.0.0" | ||
"should": "~6.0.1" | ||
} | ||
} |
# Rendy [![License][LicenseIMGURL]][LicenseURL] [![NPM version][NPMIMGURL]][NPMURL] [![Dependency Status][DependencyStatusIMGURL]][DependencyStatusURL] [![Build Status][BuildStatusIMGURL]][BuildStatusURL] | ||
Simple template engine | ||
Simple template engine compatible with [handlebars](http://handlebarsjs.com "Handlebars") and [mustache](https://mustache.github.io "Mustache"). | ||
@@ -4,0 +4,0 @@ ## Install |
Sorry, the diff of this file is not supported yet
No tests
QualityPackage does not have any tests. This is a strong signal of a poorly maintained or low quality package.
Found 1 instance in 1 package
5755
0