fifty 0.0.8 → 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/fifty.rb +3 -3
- metadata +2 -2
data/lib/fifty.rb
CHANGED
@@ -6,7 +6,7 @@ module Fifty
|
|
6
6
|
require 'json'
|
7
7
|
|
8
8
|
# Version of the gem.
|
9
|
-
VERSION = '0.0.
|
9
|
+
VERSION = '0.0.9'
|
10
10
|
|
11
11
|
# Class-level variables.
|
12
12
|
|
@@ -207,8 +207,8 @@ module Fifty
|
|
207
207
|
# Get the contents of a HAML template by name and
|
208
208
|
# render the template to HTML with nested HBS.
|
209
209
|
def self.render_haml(name, options = {}, &block)
|
210
|
-
|
211
|
-
|
210
|
+
Haml::Engine.new(get_template(name), options)
|
211
|
+
.render(context, options[:locals] || {}, &block)
|
212
212
|
rescue
|
213
213
|
debug "Couldn't render template #{name}"
|
214
214
|
raise
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fifty
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.9
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-03-
|
12
|
+
date: 2013-03-29 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: json
|