Module: Pinion::SinatraHelpers
- Defined in:
- lib/pinion/sinatra_helpers.rb
Overview
Set up Pinion in your sinatra app:
set :pinion, Pinion::Server.new("/assets")
configure do
pinion.convert :scss => :css
pinion.watch "public/css"
end
then mix in in this module in your sinatra app:
helpers Pinion::SinatraHelpers
Now you can access the Pinion::Server helper methods in your view:
<head>
<%= css_url "style.css" %>
</head>