package
0.2.0-alpha
Repository: https://github.com/icecake-framework/icecake.git
Documentation: pkg.go.dev
# Functions
AddRegistryEntry create a new RegistryEntry and add it to the global and private registry.
BuildTag get a tag from the TagBuilder then set up name attribute and RMeta id.
CheckAttribute returns an error if the attribute name or its value are not valid.
No description provided by the author
GetRegistryEntry returns the RegistryEntry corresponding to the _name.
GetUniqueId returns a unique id starting with prefix.
IsRegistered returns if the _name has already been regystered.
LookupRegistryEntry lookup for _cmp in the registry and returns the first RegistryEntry with matching type.
No description provided by the author
Tag factory setting the tag named and allowing to assign an existing map of attibutes.
ParseAttributes tries to parse attributes and ignore errors.
RegisterComposer registers a _composer with the unique _ickname.
RenderChild renders the HTML string of the composers to out, including its tag element its properties and its content.
RenderString writes one or many strings to w.
RenderStringIf writes one or many strings to w only if the condition is true.
RequireCSSFile allows to declare a required CSS file.
RequireCSSFile allows to declare a required CSS style string for a specific snippet.
No description provided by the author
No description provided by the author
ResetRegistry is only used for testing.
StringifyAttributeValue makes a valid attribute value string.
ToHTML is the HTMLString factory allowing to convert a string into a new HTMLString reday for rendering.
TryParseAttribute splits alist of attributes separated by spaces and sets each to the returned AttributeMap.
# Variables
No description provided by the author
No description provided by the author
No description provided by the author
# Structs
No description provided by the author
ContentStack is a stack of ContentComposer than can easily be embedded into any custom snippet.
HTMLString represents a string document fragment, mixing standard HTML syntax with <ick-tags/> inline components.
No description provided by the author
RegistryEntry defines a component.
RMetaData is rendering metadata for a single HTMLContentComposer.
Tag represents the tag of an HTML element with its attributes.
# Interfaces
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Type aliases
AttributeMap represents a list of valid HTML tag attributes, providing methods to easily set, update and extract each.
No description provided by the author