Skip to content

Instantly share code, notes, and snippets.

@edzhelyov
Created March 8, 2011 14:01
Show Gist options
  • Save edzhelyov/860283 to your computer and use it in GitHub Desktop.
Save edzhelyov/860283 to your computer and use it in GitHub Desktop.
Sinatra inline templates
require 'haml'
get '/' do
haml :overview
end
__END__
@@ overview
%html
%head
%title Overview template
%body
%h2 Current body
require 'sinatra'
require File.expand_path('../app', __FILE__)
run Sinatra::Application
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment