Skip to content

Instantly share code, notes, and snippets.

@vinibaggio
Created June 21, 2010 17:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vinibaggio/447149 to your computer and use it in GitHub Desktop.
Save vinibaggio/447149 to your computer and use it in GitHub Desktop.
# NOTE: Inline templates defined in the source file that requires sinatra are automatically
# loaded.
# Call `enable :inline_templates` explicitly if you have inline templates in other source
# files.
require 'rubygems'
require 'sinatra'
get '/' do
haml :index
end
__END__
@@ layout
%html
= yield
@@ index
%div.title Hello world!!!!!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment