Fragments
Overview
A HyperTemplates fragment is an HTML DocumentFragment. Generally speaking, a HyperTemplates layout is an HTML fragment template with at least one HyperTemplates attribute, but this is not a hard requirement.
HyperTemplates fragments are the most useful building block in the HyperTemplates templating system.
Example
This example shows a simple HyperTemplates fragment.
1<header>
2 <h1 ht-content='page.title'>Placeholder title</h1>
3</header>
Specification
Valid HTML
Fragments must be valid HTML DocumentFragment.
Fragments must not contain <html>, <head>, or <body> elements.
From a practical perspective a HyperTemplates fragment a file containing valid HTML with at least one template attribute.
To learn more about how to develop HyperTemplates fragments, please visit the HyperTemplates attribute reference.