Module: Markaby::ActionControllerHelpers
- Defined in:
- lib/gems/markaby-0.5/lib/markaby/rails.rb
Overview
Markaby helpers for Rails.
Instance Method Summary collapse
-
#render_markaby(options = {}, &block) ⇒ Object
Returns a string of HTML built from the attached
block
.
Instance Method Details
#render_markaby(options = {}, &block) ⇒ Object
Returns a string of HTML built from the attached block
. Any options
are passed into the render method.
Use this method in your controllers to output Markaby directly from inside.
9 10 11 |
# File 'lib/gems/markaby-0.5/lib/markaby/rails.rb', line 9 def render_markaby( = {}, &block) render .merge({ :text => Builder.new({}, self, &block).to_s }) end |