diff options
author | Markus Wüstenberg | 2023-05-11 10:06:23 +0200 |
---|---|---|
committer | Markus Wüstenberg | 2023-05-11 10:06:23 +0200 |
commit | c129ae8da154e1f6ef325ac85ca4d2736547c7cd (patch) | |
tree | 3b14ce4e547f5195f97f6e12333d5927c9b481f0 /gomponents.go | |
parent | b638b8b078ffedc76513aac30152ce36f2072814 (diff) | |
download | gomponents-c129ae8da154e1f6ef325ac85ca4d2736547c7cd.tar.lz gomponents-c129ae8da154e1f6ef325ac85ca4d2736547c7cd.tar.zst gomponents-c129ae8da154e1f6ef325ac85ca4d2736547c7cd.zip |
Document Text/Textf helpers better
Both in the readme and package doc. Fixes #133.
Diffstat (limited to 'gomponents.go')
-rw-r--r-- | gomponents.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gomponents.go b/gomponents.go index 9f86538..7b73a3b 100644 --- a/gomponents.go +++ b/gomponents.go @@ -4,8 +4,8 @@ // to the given writer as a string. // // All DOM elements and attributes can be created by using the El and Attr functions. -// The functions Text, Textf, Raw, and Rawf can be used to create text nodes. -// See also helper functions Group, Map, and If. +// The functions Text, Textf, Raw, and Rawf can be used to create text nodes, either HTML-escaped or unescaped. +// See also helper functions Group, Map, and If for mapping data to Nodes and inserting them conditionally. // // For basic HTML elements and attributes, see the package html. // For higher-level HTML components, see the package components. |