general example
This commit is contained in:
parent
ec4c8d168a
commit
00d9483dc8
12
web_lisp_src/general.wisp
Normal file
12
web_lisp_src/general.wisp
Normal file
|
@ -0,0 +1,12 @@
|
|||
(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))))))
|
2
web_lisp_src/hello-world.wisp
Normal file
2
web_lisp_src/hello-world.wisp
Normal file
|
@ -0,0 +1,2 @@
|
|||
(document
|
||||
(text "Hello, world!"))
|
|
@ -1,2 +0,0 @@
|
|||
(document
|
||||
(text "Hello, world!"))
|
|
@ -5,4 +5,4 @@
|
|||
(text "Hello, world!")
|
||||
(image (link "ablecorp.us/img.png"))
|
||||
(button :text "Click Me!!"
|
||||
:callback (fn [])))
|
||||
:callback (fun ())))
|
|
@ -1,6 +1,6 @@
|
|||
(style
|
||||
:id 1
|
||||
{ :size 12})
|
||||
:size 12)
|
||||
|
||||
(document
|
||||
(text :style 1 "Hello, world!"))
|
||||
|
|
Loading…
Reference in a new issue