Static HTML
A template.html file is served verbatim — the request data is not interpolated server-side. It is the lowest-priority engine (used when no Mustache/Handlebars/Go body exists).
<!doctype html>
<html>
<head><link rel="stylesheet" href="assets/styles.css"></head>
<body><h1>Static document</h1></body>
</html>When to use it
- Truly fixed documents (a cover page, a fixed form).
- Documents whose dynamism comes entirely from client-side JavaScript — the page can
fetchdata or build content in the browser, then use thecallbacklifecycle event to signal readiness before printing. - Documents that reference assets and load them via URLs.
Because no server-side templating runs, static templates cannot use helpers or partials. For any data-driven document, use one of the other engines.