A mixin to add Inversion support to Sinatra::Base
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
Generated with the Darkfish Rdoc Generator 2.