Advertisement
Guest User

Untitled

a guest
Aug 5th, 2017
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
IO 0.25 KB | None | 0 0
  1. MyCounter := Object clone do(
  2.   init := method(
  3.     count ::= 0
  4.   )
  5.  
  6.   renderOn := method(html,
  7.     html h1 with( html text("Counter: " .. count))
  8.     html link("--", block(count = count - 1))
  9.     html link("++", block(count = count + 1))
  10.   )
  11. )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement