Inversion::
SinatraTemplateHelpers
module
A mixin to add Inversion
support to Sinatra::Base
inversion( template, options={}, locals={} )
Add an ‘inversion’ helper method to Sinatra’s template DSL:
get '/' do
inversion :company_directory, :locals => { :people => People.all }
end
def inversion( template, options={}, locals={} )
render :inversion, template, options, locals
end