Methods

Inversion::SinatraTemplateHelpers

A mixin to add Inversion support to Sinatra::Base

Public Instance Methods

inversion( template, options={}, locals={} ) click to toggle source

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

[Validate]

Generated with the Darkfish Rdoc Generator 2.