Created
May 10, 2009 22:53
-
-
Save dyoder/109776 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
module HelloWorld | |
include Waves::Foundations::Compact | |
module Resources | |
class Map | |
include Hoshi::View :html4 | |
on( :get, [ 'hello', :name ] ) { hello( captured.name ) } | |
def hello( name ) | |
h1 "Hello, World" | |
p "Hello, my name is #{name}." | |
end | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment