Skip to content

Instantly share code, notes, and snippets.

@kenichi
Created August 17, 2011 22:29
Show Gist options
  • Save kenichi/1152810 to your computer and use it in GitHub Desktop.
Save kenichi/1152810 to your computer and use it in GitHub Desktop.
sinatra/haml reload templates
require 'sinatra'
require 'haml'
configure do
set :reload_templates, true
end
get '/' do
haml :index, :layout => false
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment