Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: 9c25adb439
Fetching contributors…

Cannot retrieve contributors at this time

27 lines (17 sloc) 0.653 kB

Scss Templates

The sass gem/library is required to render Scss templates:

## You'll need to require haml or sass in your app
require 'sass'

get '/stylesheet.css' do
  scss :stylesheet
end

Renders ./views/stylesheet.scss.

Scss' options can be set globally through Sinatra's configurations, see Options and Configurations, and overridden on an individual basis.

set :scss, :style => :compact # default Scss style is :nested

get '/stylesheet.css' do
  scss :stylesheet, :style => :expanded # overridden
end
Jump to Line
Something went wrong with that request. Please try again.