examples/button.rb in scarpe-0.1.0 vs examples/button.rb in scarpe-0.2.0
- old
+ new
@@ -1,9 +1,10 @@
-require "scarpe"
-
-Scarpe.app do
+Shoes.app do
@push = button "Push me"
@note = para "Nothing pushed so far"
@push.click {
- @note.replace "Aha! Click!"
+ @note.replace(
+ "Aha! Click! ",
+ link("Go back") { @note.replace "Nothing pushed so far" }
+ )
}
-end
\ No newline at end of file
+end