handlebar_wax 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
@@ -5,13 +5,13 @@ HandlebarWax = (function() {
|
|
5
5
|
var compiledTemplates = {};
|
6
6
|
|
7
7
|
var fun = function(templateName, params) {
|
8
|
-
if (! compiledTemplates[
|
9
|
-
compiledTemplates[
|
8
|
+
if (! compiledTemplates[templateName]) {
|
9
|
+
compiledTemplates[templateName] = Handlebars.compile(templates[templateName]);
|
10
10
|
}
|
11
11
|
if (typeof params == "undefined") {
|
12
|
-
return compiledTemplates[
|
12
|
+
return compiledTemplates[templateName];
|
13
13
|
} else {
|
14
|
-
return compiledTemplates[
|
14
|
+
return compiledTemplates[templateName](params);
|
15
15
|
}
|
16
16
|
};
|
17
17
|
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: handlebar_wax
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 31
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 2
|
10
|
+
version: 0.1.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Burke Libbey
|