/app/components/Counter.io
http://github.com/pgregory/blackpool · Unknown · 11 lines · 10 code · 1 blank · 0 comment · 0 complexity · 70653d18ecd982e5254a5c3cf0a83313 MD5 · raw file
- Counter := Object clone do(
- init := method(
- count ::= 0
- )
- renderOn := method(html,
- html h1 with( html text("Counter: " .. count))
- html link("--", block(count = count - 1))
- html link("++", block(count = count + 1))
- )
- )