Class: Mack::Rendering::Engine::Markaby
- Defined in:
- lib/mack-markaby/markaby_engine.rb
Defined Under Namespace
Modules: ViewHelpers
Instance Method Summary collapse
Instance Method Details
#extension ⇒ Object
15 16 17 |
# File 'lib/mack-markaby/markaby_engine.rb', line 15 def extension :mab end |
#render(io, binding) ⇒ Object
6 7 8 9 10 11 12 13 |
# File 'lib/mack-markaby/markaby_engine.rb', line 6 def render(io, binding) if io.is_a?(File) io = io.read end @_markaby = ::Markaby::Builder.new({}, self.view_template) self.view_template.instance_variable_set("@_markaby", @_markaby) eval(io, binding) end |