- rbac/: Role type, constants, HasPermission, RoleFromString - blocks/: BlockFunc, BlockMeta, BlockContext, context accessors, BlockRegistry interface - templates/: TemplateFunc, meta types, TemplateRegistry interface - auth/: Claims, PublicClaims, context extractors - content/: Content interface, AuthorProfile/PageInfo/PostInfo types - settings/: Settings interface, map accessor helpers - gating/: AccessRule, AccessResult, EvaluateAccess, Gating interface - crypto/: Crypto interface (Encrypt/Decrypt) - render/: BlockNoteToHTML standalone renderer - video/: ParseEmbedURL, EmbedIframeURL - ai/: ToolDefinition, ToolResult, ToolRegistry interface Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
11 lines
417 B
Go
11 lines
417 B
Go
package templates
|
|
|
|
// TemplateRegistry is the interface plugins use to register templates.
|
|
// The CMS provides the concrete implementation.
|
|
type TemplateRegistry interface {
|
|
Register(key string, fn TemplateFunc) error
|
|
RegisterSystemTemplate(meta SystemTemplateMeta)
|
|
RegisterPageTemplate(systemKey string, meta PageTemplateMeta, fn TemplateFunc) error
|
|
RegisterEmailWrapper(systemKey string, fn EmailWrapperFunc)
|
|
}
|