handlebar_wax 0.0.4 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +1 -1
- data/README.rdoc +2 -2
- data/lib/handlebar_wax/template_handler.rb +2 -2
- data/lib/handlebar_wax/version.rb +1 -1
- metadata +5 -5
data/Gemfile.lock
CHANGED
data/README.rdoc
CHANGED
@@ -37,8 +37,8 @@ For the client side, HandlebarWax writes all your templates into +public/javascr
|
|
37
37
|
== Who made this possible?
|
38
38
|
|
39
39
|
* Steven Soroka (ssoroka) for pub-based discussion about this, and initial mustache_wax code
|
40
|
-
* Jamesarosen for handlebars-rails, which this project includes in its entirety, with very few modifications as of yet.
|
41
|
-
* Yehuda Katz (
|
40
|
+
* Yehuda Katz and Jamesarosen for handlebars-rails, which this project includes in its entirety, with very few modifications as of yet.
|
41
|
+
* Yehuda Katz (yes, twice) for the wonderful Handlebars.js.
|
42
42
|
|
43
43
|
== I want to help / I have an idea.
|
44
44
|
|
@@ -37,13 +37,13 @@ module HandlebarWax
|
|
37
37
|
%{
|
38
38
|
js = ::HandlebarWax::TemplateHandler.js
|
39
39
|
js['actionview'] = self
|
40
|
-
js.eval("Templates['#{template.identifier}']").call(assigns.merge(
|
40
|
+
js.eval("Templates['#{template.identifier}']").call(assigns.merge(local_assigns)).force_encoding(Encoding.default_external)
|
41
41
|
}
|
42
42
|
else
|
43
43
|
%{
|
44
44
|
js = ::HandlebarWax::TemplateHandler.js
|
45
45
|
js['actionview'] = self
|
46
|
-
js.eval("Templates['#{template.identifier}']").call(assigns.merge(
|
46
|
+
js.eval("Templates['#{template.identifier}']").call(assigns.merge(local_assigns))
|
47
47
|
}
|
48
48
|
end
|
49
49
|
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:
|
4
|
+
hash: 27
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
|
+
- 1
|
8
9
|
- 0
|
9
|
-
|
10
|
-
version: 0.0.4
|
10
|
+
version: 0.1.0
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Burke Libbey
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-
|
18
|
+
date: 2011-03-30 00:00:00 -05:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -163,7 +163,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
163
163
|
requirements: []
|
164
164
|
|
165
165
|
rubyforge_project:
|
166
|
-
rubygems_version: 1.
|
166
|
+
rubygems_version: 1.6.0
|
167
167
|
signing_key:
|
168
168
|
specification_version: 3
|
169
169
|
summary: easy reuse of mustache templates between server and client
|