Skip to content

Instantly share code, notes, and snippets.

@mustardamus
Created May 31, 2010 23:30
Show Gist options
  • Save mustardamus/420382 to your computer and use it in GitHub Desktop.
Save mustardamus/420382 to your computer and use it in GitHub Desktop.
ARTICLES = [
{ :title => "Create a Micro Chameleon Blog with Sinatra", :url => "create_a_micro_chameleon_blog_with_sinatra", :created => Time.parse("05/31/2010") }
]
get "/" do
params[:article] = ARTICLES[0][:url]
erb File.read "articles/#{ARTICLES[0][:url]}/article.erb"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment