merb-haml 1.0.7.1 → 1.0.8
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/merb-haml/template.rb +2 -5
- data/lib/merb-haml.rb +2 -1
- metadata +3 -3
data/lib/merb-haml/template.rb
CHANGED
@@ -11,11 +11,8 @@ module Merb::Template
|
|
11
11
|
# mod<Class, Module>::
|
12
12
|
# The class or module wherein this method should be defined.
|
13
13
|
def self.compile_template(io, name, locals, mod)
|
14
|
-
path
|
15
|
-
config
|
16
|
-
c[k.to_sym] = v
|
17
|
-
c
|
18
|
-
end.merge :filename => path
|
14
|
+
path = File.expand_path(io.path)
|
15
|
+
config = Mash.new(Merb::Plugins.config[:haml].merge(:filename => path))
|
19
16
|
template = ::Haml::Engine.new(io.read, config)
|
20
17
|
template.def_method(mod, name, *locals)
|
21
18
|
name
|
data/lib/merb-haml.rb
CHANGED
@@ -3,7 +3,8 @@ if defined?(Merb)
|
|
3
3
|
require "haml"
|
4
4
|
require "merb-haml/template"
|
5
5
|
Merb::Plugins.add_rakefiles(File.join(File.dirname(__FILE__) / "merb-haml" / "merbtasks"))
|
6
|
-
|
6
|
+
|
7
|
+
Merb::Plugins.config[:haml] ||= {}
|
7
8
|
Merb::Plugins.config[:sass] ||= {}
|
8
9
|
|
9
10
|
Merb::BootLoader.after_app_loads do
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: merb-haml
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yehuda Katz
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date:
|
12
|
+
date: 2009-01-16 00:00:00 -08:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -20,7 +20,7 @@ dependencies:
|
|
20
20
|
requirements:
|
21
21
|
- - "="
|
22
22
|
- !ruby/object:Gem::Version
|
23
|
-
version: 1.0.
|
23
|
+
version: 1.0.8
|
24
24
|
version:
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: haml
|