dyoder (owner)

Revisions

gist: 109776 Download_button fork
public
Public Clone URL: git://gist.github.com/109776.git
hello_world.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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