wisp/web_lisp_src/general.wisp

13 lines
437 B
Plaintext
Raw Normal View History

2022-07-26 14:25:08 -05:00
(metadata (title "General example"))
(on-update '())
(on-load '((fun () (log "Loaded!"))))
(document
(let (good "Goooood...")
(text "↓ Click this button ↓")
(button :text "yes, this one"
:callback (fun (btn)
(set-label btn good)))
(button :text "not this one"
:callback (fun (btn)
(set-label btn (+ "not " good))))))