Inversion::

SinatraTemplateHelpers module

A mixin to add Inversion support to Sinatra::Base

Public Instance Methods

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 23
def inversion( template, options={}, locals={} )
        render :inversion, template, options, locals
end