Sha256: 55f20aa0e71327047d56db067b8cb56b55cd70a935f878cc5509d3a0fa350577
Contents?: true
Size: 512 Bytes
Versions: 1
Compression:
Stored size: 512 Bytes
Contents
class BookList < Shoes url '/', :index url '/twain', :twain url '/kv', :vonnegut def index para "Books I've read: ", link("by Mark Twain", :click => "/twain"), link("by Kurt Vonnegut", :click => "/kv") end def twain para "Just Huck Finn.\n", link("Go back.", :click => "/") end def vonnegut para "Cat's Cradle. Sirens of Titan. ", "Breakfast of Champions.\n", link("Go back.", :click => "/") end end Shoes.app :width => 400, :height => 500
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
shoes-4.0.0.pre2 | samples/nks_booklist.rb |