Skip to content

Instantly share code, notes, and snippets.

@shtirlic
Created March 29, 2010 09:03
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 shtirlic/347623 to your computer and use it in GitHub Desktop.
Save shtirlic/347623 to your computer and use it in GitHub Desktop.
#title Hello World!
!!!
%html
%head
%body
#content
= yield
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head></head>
<body>
<div id='content'>
<div id='title'>Hello World!</div>
</div>
</body>
</html>
<!DOCTYPE html>
<html>
<head></head>
<body>
<div id='content'>
&lt;div id='title'&gt;Hello World!&lt;/div&gt;
</div>
</body>
</html>
require "rubygems"
require "sinatra"
require "sinatra/reloader" if development?
require "haml"
get '/' do
haml :index
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment