Comparing version 1.0.2 to 1.0.3
@@ -25,3 +25,3 @@ (function(global) { | ||
str = data[param]; | ||
expr = '{{\\s*' + param + '\\s*}}'; | ||
expr = '{{\\s' + param + '\\s}}'; | ||
regExp = RegExp(expr, 'g'); | ||
@@ -28,0 +28,0 @@ result = result.replace(regExp, str); |
{ | ||
"name": "rendy", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "simple template engine", | ||
@@ -26,4 +26,4 @@ "main": "lib/rendy.js", | ||
"gulp-mocha": "~2.0.0", | ||
"should": "~4.3.1" | ||
"should": "~4.6.0" | ||
} | ||
} |
@@ -18,8 +18,8 @@ # Rendy | ||
<script> | ||
Tmpl = 'hello {{ where }}'; | ||
result = rendy(Tmpl, { | ||
where: 'in browser' | ||
}); | ||
// returns | ||
'hello in browser' | ||
var Tmpl = 'hello {{ where }}'; | ||
result = rendy(Tmpl, { | ||
where: 'in browser' | ||
}); | ||
// returns | ||
'hello in browser' | ||
</script> | ||
@@ -26,0 +26,0 @@ ``` |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
3804