Created
December 27, 2012 06:57
-
-
Save cdl/4386084 to your computer and use it in GitHub Desktop.
simple two-page site in camping
This file contains 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
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