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[name]) {
9
- compiledTemplates[name] = Handlebars.compile(templates[templateName]);
8
+ if (! compiledTemplates[templateName]) {
9
+ compiledTemplates[templateName] = Handlebars.compile(templates[templateName]);
10
10
  }
11
11
  if (typeof params == "undefined") {
12
- return compiledTemplates[name];
12
+ return compiledTemplates[templateName];
13
13
  } else {
14
- return compiledTemplates[name](params);
14
+ return compiledTemplates[templateName](params);
15
15
  }
16
16
  };
17
17
 
@@ -1,3 +1,3 @@
1
1
  module HandlebarWax
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
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: 25
4
+ hash: 31
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 1
10
- version: 0.1.1
9
+ - 2
10
+ version: 0.1.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Burke Libbey