Categorygithub.com/client9/tagfunctions
modulepackage
0.0.0-20241101043239-861527e9c97d
Repository: https://github.com/client9/tagfunctions.git
Documentation: pkg.go.dev

# Functions

Append adds the child to the parent and returns the parent helper to do function chaining.
No description provided by the author
given a $ent[VALUE] -> &VALUE; no error checkign to see if a value HTML or XML entity.
No description provided by the author
No description provided by the author
Execute parses and renders a tag string.
GetArg - get Attribute value by index.
GetAttr - Get Attribute by key.
No description provided by the author
MakeTag return a NodeFunc that transforms the incoming node - Type of ElementNode - With a new Tag name - With no Attributes - Children are preserved.
MakeTagClass returns a NodeFunc that transforms in incoming node: - Type of ElementNode - With a new Tag Name - Clears all existing attributes - Add an attribute of class with value - Children are preserved.
NewCsvTableHTML takes an embedded CSV and converts to an HTML table.
No description provided by the author
No description provided by the author
RemoveChildren removes all child nodes and returns itself.
Render AST back into parseble string i.e.
Render AST into HTML.
No description provided by the author
Reparent moves children from src to dst, and returns dst.
Replace.
"select title" -- only returns text children Could be improved.
Selector recursively selects all nodes that match a given function TODO: why is this in this file?.
No description provided by the author
SetArg Set attribute argument by index.
No description provided by the author
ToArgs converts a Node's attributes into a list of arguments if a value is empty then it's just "key".
Transform changes ElementNode's name and attributes children remain the same.

# Structs

No description provided by the author
No description provided by the author

# Type aliases

No description provided by the author