HyperTemplates Attributes Reference
The core of HyperTemplates is a small but mighty set of HTML attributes that allow you to compose complex HTML documents from simple HTML templates.
ht-include- Replaces the target HTML element with elements from an external source.
ht-if- Retains the target HTML element if a condition is
true. ht-not- Removes the target HTML element if a condition is
true. ht-template- Repeats the target HTML element once per occurrence of some content.
ht-attrs- Annotates the target HTML element with one or more HTML attributes.
ht-base- Resolves relative URLs by providing a base URL to be used within some portion of a template.
ht-query- Annotates URLs in target HTML attributes with query parameters.
ht-param- Replaces the target HTML element with Text or Element nodes.
ht-content- Inserts text or HTML content to the target HTML element.
ht-block- Progressively enhances the target HTML element.
ht-pipe- Moves the target HTML element or its contents to a destination element.
This is the complete set of template attributes used by HyperTemplates. They were designed to be easy to learn and remember.
NOTE: HyperTemplates supports the
data-prefix for all template attributes (e.g.ht-contentis the same asdata-ht-content).