Skip to content

Instantly share code, notes, and snippets.

@ashbb
Created December 14, 2010 14:36
Show Gist options
  • Select an option

  • Save ashbb/740502 to your computer and use it in GitHub Desktop.

Select an option

Save ashbb/740502 to your computer and use it in GitHub Desktop.
require '../lib/green_shoes'
class Kensho < Shoes
url '/', :index
url '/validate', :validate
def index
stack do
flow do
para "kensho"
end
flow do
@type = list_box items: ['HTML', 'CSS', 'XML'], choose: 'HTML'
end
flow do
@markup = edit_box
end
flow do
button('Validate') do
$data = [@type.text, @markup.text]
visit '/validate'
end
end
end
end
def validate
para *$data
end
end
Shoes.app width: 400, height: 400, title: 'kensho'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment