- ssr double: page template composing header/footer partials under the
HTML escaper, typed context built by a builder fn per ADR-004; golden
pins for composition, escaping of hostile interpolation, the trusted
{{& }} slot, and render-by-partial-name rejection
- code double: struct-writer template under the no-op escaper, typed
context built from a schema document with kind mapping and
source-escaped literals in the builder; golden pins for document-order
arrays and the active preserve_order feature
- fixture assets are include_str! files under tests/fixtures/; fixture
modules are per-test-binary so wave-2 proofs can grow them
- task file updated to completed with Notes and Summary
Verification: cargo test green (19 lib + 8 fixture tests), clippy
-D warnings clean, cargo fmt --check clean
11 lines
293 B
Handlebars
11 lines
293 B
Handlebars
<!doctype html>
|
|
<html lang="en">
|
|
{{> header}}
|
|
<body>
|
|
<main>{{#each sections}}{{#if is_callout}}<aside class="note">{{text}}</aside>{{else}}<p>{{text}}</p>{{/if}}{{/each}}</main>
|
|
{{#if show_banner}}<p class="banner">{{banner_text}}</p>{{/if}}
|
|
{{& trusted_sidebar}}
|
|
{{> footer}}
|
|
</body>
|
|
</html>
|