Inversion::

SinatraTemplateHelpers

module

A mixin to add Inversion support to Sinatra::Base

Public Instance Methods

anchor
inversion( template, options={}, locals={} )

Add an 'inversion' helper method to Sinatra's template DSL:

get '/' do
  inversion :company_directory, :locals => { :people => People.all }
end
# File lib/inversion/sinatra.rb, line 22
def inversion( template, options={}, locals={} )
        render :inversion, template, options, locals
end