Decouple TemplateFunc from templ.Component by introducing a generic HTMLComponent interface that both templ and pongo2 satisfy via Go structural typing. Add a complete pongo2 rendering engine in templates/pongo/ with page templates, block templates (with BlockContext injection and icon processing), template overrides, and email wrappers. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
599 B
599 B
Core SDK
Go module git.dev.alexdunmow.com/block/core. Defines plugin interfaces, template engine, block registry, and shared types for the BlockNinja CMS.
Critical Rules
- NEVER use
replacedirectives in go.mod — not in this repo, not in any consumer. All module resolution goes through the Gitea module proxy. If you need to test local changes, tag and push a version. - Plugins import from core only — never from the CMS (
blockninja/backend) or orchestrator. - All consumers are in-house — no backwards compatibility shims needed. Just change the API and update consumers.