From d52e9a28001707e2e82217da508abea405ef1639 Mon Sep 17 00:00:00 2001 From: Erin Date: Thu, 21 Jul 2022 01:11:38 +0200 Subject: [PATCH] changed examples --- web_lisp_src/hello_world.wisp | 5 ++--- web_lisp_src/not_hello_world.wisp | 20 ++++++++------------ web_lisp_src/style.wisp | 10 ++++++---- 3 files changed, 16 insertions(+), 19 deletions(-) diff --git a/web_lisp_src/hello_world.wisp b/web_lisp_src/hello_world.wisp index 2c873f2..e58cdb5 100644 --- a/web_lisp_src/hello_world.wisp +++ b/web_lisp_src/hello_world.wisp @@ -1,3 +1,2 @@ -(wisp - (document - (text "Hello, World!"))) \ No newline at end of file +(document + (text "Hello, world!")) \ No newline at end of file diff --git a/web_lisp_src/not_hello_world.wisp b/web_lisp_src/not_hello_world.wisp index 164e00d..dba98c9 100644 --- a/web_lisp_src/not_hello_world.wisp +++ b/web_lisp_src/not_hello_world.wisp @@ -1,12 +1,8 @@ -(wisp - (metadata - (title "Hi there!")) - (on-update '()) - (on-load '()) - (document - (text "Hello, World!") - (image - (link "ablecorp.us/img.png")) - (button :text "Click Me!!" - :callback - (lambda '())))) \ No newline at end of file +(metadata (title "Hi there!")) +(on-update '()) +(on-load '()) +(document + (text "Hello, world!") + (image (link "ablecorp.us/img.png")) + (button :text "Click Me!!" + :callback (fn []))) \ No newline at end of file diff --git a/web_lisp_src/style.wisp b/web_lisp_src/style.wisp index 4a239e2..b13fda8 100644 --- a/web_lisp_src/style.wisp +++ b/web_lisp_src/style.wisp @@ -1,4 +1,6 @@ -(wisp - (style :id 1 '(:size 12 )) - (document - (text :style 1 "Hello, World!"))) \ No newline at end of file +(style + :id 1 + { :size 12}) + +(document + (text :style 1 "Hello, world!"))