Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 97eedd413c
Fetching contributors…

Cannot retrieve contributors at this time

20 lines (12 sloc) 0.48 kb

Haml

The haml gem/library is required to render HAML templates:

set :haml, :format => :html5 # default Haml format is :xhtml

get '/' do
  haml :index, :format => :html4 # overridden
end

This will render ./views/index.haml

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

Jump to Line
Something went wrong with that request. Please try again.