mack-markaby 0.7.1.1 → 0.8.0
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/mack-markaby/markaby_engine.rb +3 -0
- metadata +3 -3
@@ -4,6 +4,9 @@ module Mack
|
|
4
4
|
class Markaby < Mack::Rendering::Engine::Base
|
5
5
|
|
6
6
|
def render(io, binding)
|
7
|
+
if io.is_a?(File)
|
8
|
+
io = io.read
|
9
|
+
end
|
7
10
|
@_markaby = ::Markaby::Builder.new({}, self.view_template)
|
8
11
|
self.view_template.instance_variable_set("@_markaby", @_markaby)
|
9
12
|
eval(io, binding)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mack-markaby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.8.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Darsono Sutedja
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2008-
|
12
|
+
date: 2008-10-06 00:00:00 -04:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -57,7 +57,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
57
57
|
requirements: []
|
58
58
|
|
59
59
|
rubyforge_project: magrathea
|
60
|
-
rubygems_version: 1.
|
60
|
+
rubygems_version: 1.3.0
|
61
61
|
signing_key:
|
62
62
|
specification_version: 2
|
63
63
|
summary: Rendering Engine
|