themes-editorial/text_override.templ
Alex Dunmow 1d9a4c8ce6 initial: theme plugin editorial
Bootstrapped during the 2026-06-06 BlockNinja consolidation. Was previously
an unversioned directory inside ~/src/blockninja-themes/editorial.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-06-06 14:11:28 +08:00

11 lines
339 B
Plaintext

package main
// editorialTextComponent renders rich-text body copy with the editorial prose
// rules applied. The author-supplied HTML is trusted (the CMS sanitiser runs
// upstream).
templ editorialTextComponent(text, class string) {
<div class={ "editorial-text editorial-column prose-editorial", class }>
@templ.Raw(text)
</div>
}