Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
20 lines (12 sloc) 480 Bytes

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.

Something went wrong with that request. Please try again.