add: improve syntax
This commit is contained in:
parent
55130db04a
commit
149025f9e4
7 changed files with 52 additions and 34 deletions
|
@ -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!"))))
|
||||
|
|
|
@ -1,2 +1,5 @@
|
|||
('"\"Hello,\" world!")
|
||||
(' "Hello, \"w\"orld!")
|
||||
(text "\"Hello,\" world!")
|
||||
(text "Hello, \"w\"orld!")
|
||||
(span
|
||||
("x" "y")
|
||||
(text "Hello"))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue