Created
January 31, 2010 18:30
-
-
Save darron/291184 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'page' | |
run Sinatra::Application |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head><title>html goes here</title> | |
</head> | |
<body> | |
Your staticmatic output goes here - you can use haml if you want too. | |
</body> | |
</html> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rubygems' | |
require 'sinatra' | |
require 'erb' | |
# require 'haml' | |
get '/' do | |
erb :index | |
# or | |
# haml :index | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment