Skip to content

Instantly share code, notes, and snippets.

@Poincare
Created September 10, 2012 23:28
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 Poincare/3694779 to your computer and use it in GitHub Desktop.
Save Poincare/3694779 to your computer and use it in GitHub Desktop.
Camping.goes :Hello
module Hello::Controllers
class Index < R '/'
def get
render :hello
end
end
end
module Hello::Views
def hello
html do
head do
title "Hi, world!"
end
h1 "Hello, world!"
h3 "Bye, world!"
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment