Created
June 12, 2013 16:27
-
-
Save muffinista/5766917 to your computer and use it in GitHub Desktop.
Gopher 2000 simple example
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
route '/' do | |
render :index | |
end | |
menu :index do | |
# output a text entry in the menu | |
text 'simple gopher example' | |
link 'current time', '/time' | |
br | |
end | |
route '/time' do | |
"It is currently #{Time.now}" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment