Skip to content

Integrating with Sinatra

Caleb Wright edited this page Jun 26, 2014 · 2 revisions

PinballWizard has a helper to add a #feature method to your Slim views. See the README for usage.

# app/helpers/pinball_wizard_helper.rb

require 'pinball_wizard/sinatra/slim/helper'

module Sinatra
  helpers PinballWizard::Sinatra::Slim::Helper
end