add: improve syntax

This commit is contained in:
trisua 2025-05-31 10:01:25 -04:00
parent 55130db04a
commit 149025f9e4
7 changed files with 52 additions and 34 deletions

View file

@ -1,15 +1,15 @@
('"<!DOCTYPE html>") ; using a raw string for the doctype is fine
(text "<!DOCTYPE html>") ; using a raw string for the doctype is fine
(html
(head
; everything that belongs in the head element
(title'"Document")
(title (text "Document"))
(meta (: "charset" "UTF-8"))
(meta (: "name" "viewport") (: "content" "width=device-width, initial-scale=1.0"))
(meta (: "http-equiv" "X-UA-Compatible") (: "content" "ie=edge"))
(meta ("charset" "UTF-8"))
(meta ("name" "viewport") ("content" "width=device-width, initial-scale=1.0"))
(meta ("http-equiv" "X-UA-Compatible") ("content" "ie=edge"))
(link (: "rel" "stylesheet") (: "href" "#")))
(link ("rel" "stylesheet") ("href" "#")))
(body
; the actual body only starts here
(span (: "style" "color: red") ('"Hello, world!"))))
(span ("style" "color: red") (text "Hello, world!"))))