+1
-1
@@ -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); |
+1
-1
| The MIT License (MIT) | ||
| Copyright (c) 2014 coderaiser | ||
| Copyright (c) 2014-2015 coderaiser | ||
@@ -5,0 +5,0 @@ Permission is hereby granted, free of charge, to any person obtaining a copy |
+2
-2
| { | ||
| "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" | ||
| } | ||
| } |
+6
-6
@@ -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
3804
4.42%