handlebars-rails 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.md +5 -0
- data/lib/handlebars-rails.rb +1 -1
- data/lib/handlebars-rails/version.rb +1 -1
- metadata +3 -3
data/README.md
CHANGED
|
@@ -7,6 +7,11 @@ both server- and client-side.
|
|
|
7
7
|
|
|
8
8
|
DRY. That's why.
|
|
9
9
|
|
|
10
|
+
## Getting Handlebars ##
|
|
11
|
+
|
|
12
|
+
The easiest way to get a current distribution of handlebars is to
|
|
13
|
+
download it from https://github.com/wycats/handlebars.js/downloads.
|
|
14
|
+
|
|
10
15
|
## How ##
|
|
11
16
|
|
|
12
17
|
First, grab the copy of handlebars you are using and copy it into
|
data/lib/handlebars-rails.rb
CHANGED
|
@@ -37,7 +37,7 @@ module Handlebars
|
|
|
37
37
|
%{
|
|
38
38
|
js = ::Handlebars::TemplateHandler.js
|
|
39
39
|
js['actionview'] = self
|
|
40
|
-
js.eval("Templates['#{template.identifier}']").call(assigns)
|
|
40
|
+
js.eval("Templates['#{template.identifier}']").call(assigns).force_encoding(Encoding.default_external)
|
|
41
41
|
}
|
|
42
42
|
end
|
|
43
43
|
|
metadata
CHANGED
|
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
|
5
5
|
segments:
|
|
6
6
|
- 0
|
|
7
7
|
- 1
|
|
8
|
-
-
|
|
9
|
-
version: 0.1.
|
|
8
|
+
- 1
|
|
9
|
+
version: 0.1.1
|
|
10
10
|
platform: ruby
|
|
11
11
|
authors:
|
|
12
12
|
- James A. Rosen
|
|
@@ -15,7 +15,7 @@ autorequire:
|
|
|
15
15
|
bindir: bin
|
|
16
16
|
cert_chain: []
|
|
17
17
|
|
|
18
|
-
date: 2011-01-
|
|
18
|
+
date: 2011-01-06 00:00:00 -08:00
|
|
19
19
|
default_executable:
|
|
20
20
|
dependencies:
|
|
21
21
|
- !ruby/object:Gem::Dependency
|