Sha256: e2958de8da4e4f7236736cf7c3cf0d9adc83f0ecb61d823c932f779b9fb65758

Contents?: true

Size: 855 Bytes

Versions: 6

Compression:

Stored size: 855 Bytes

Contents

class MyApp < Shoes
	url "/", :setupscreen
	url "/entry", :entryscreen
	url "/help", :helpscreen
  
  def setupscreen
    stack do 
      para "Welcome to My Demo app"
      flow do
        button "entry" do visit '/entry'end
        button "help" do visit '/help' end
      end
    end
  end
  
  def entryscreen
    stack do 
      para "Entry Screen - whats your secret?"
      @the_secret = edit_line text: "I'm not telling you"
      flow do
        button "home" do visit '/'end
        button "help" do visit '/help' end
      end
    end
  end
  
  def helpscreen
     stack do 
      para "This page describes MyApp, a very demo for structuring a Shoes application "
      flow do
        button "entry" do visit '/entry'end
        button "home" do visit '/' end
      end
    end
  end
end
Shoes.app :width => 400, :height => 300, :margin => 5

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
scarpe-0.4.0 examples/legacy/not_checked/expert/url.rb
scarpe-0.3.0 examples/legacy/not_checked/expert/url.rb
scarpe-0.2.2 examples/legacy/not_checked/expert/url.rb
lacci-0.2.1 examples/legacy/not_checked/expert/url.rb
scarpe-0.2.1 examples/legacy/not_checked/expert/url.rb
scarpe-0.2.0 examples/legacy/not_checked/expert/url.rb