From b012a710e503965cd5069084d52c65335c178f86 Mon Sep 17 00:00:00 2001 From: the lemons Date: Fri, 17 Sep 2021 14:02:03 -0500 Subject: readme --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index 8700e8b..d4c1ff4 100644 --- a/README.md +++ b/README.md @@ -11,6 +11,8 @@ calling a tag's function with no arguments produces a self-closing tag. ### output
+**** + calling a tag's function with a single array or value argument produces a tag with the children provided in the array. non-table values may appear in the list of children or in its stead. they are converted to a string an escaped. ### source @@ -18,6 +20,8 @@ calling a tag's function with a single array or value argument produces a tag wi ### output

foo

bar

+**** + calling a tag's function with a single set of key/value pairs as the argument produces a self-closing tag with attributes corresponding to the key/value pairs ### source @@ -25,6 +29,8 @@ calling a tag's function with a single set of key/value pairs as the argument pr ### output +**** + calling a tag's function with a set of key/value pairs and then an array or value as the arguments produces a tag with attributes corresponding to the key/value pairs. ### source @@ -32,6 +38,8 @@ calling a tag's function with a set of key/value pairs and then an array or valu ### output foobar +**** + a table used in a list of children must either be generated from the HTML functions or have a `tohtml` function or a `render` function, returning HTML structures or HTML source respectively. a table that is not a set of attributes or an array of element children may not be used as arguments to an HTML function. ### source @@ -47,6 +55,8 @@ a table used in a list of children must either be generated from the HTML functi ### output

search result: foobar

+**** + the `raw` function will insert text verbatim into the HTML, unescaped. ### source -- cgit v1.2.3