Skip to content

Instantly share code, notes, and snippets.

@cdl
Created December 27, 2012 06:57
Show Gist options
  • Save cdl/4386084 to your computer and use it in GitHub Desktop.
Save cdl/4386084 to your computer and use it in GitHub Desktop.
simple two-page site in camping
Camping.goes :Site
module Site::Controllers
class Index < R '/'
def get
"<p>Hello, world.</p><p><a href='/about'>About me.</a></p>"
end
end
class About < R '/about'
def get
"<p>About me text.</p><p><a href='/'>Home.</a></p>"
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment