module Markaby::ActionControllerHelpers
Markaby helpers for Rails.
Public Instance Methods
render_markaby(options = {}, &block)
click to toggle source
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.
# File lib/markaby/rails.rb, line 9 def render_markaby(options = {}, &block) render options.merge({ :text => Builder.new({}, self, &block).to_s }) end