Skip to main content

Module templates

Module templates 

Source

Structs§

Assets
RenderContext

Constants§

DEFAULT_PLUGIN_VERSION
TEMPLATE_VERSION

Functions§

canonical_templates
Lists the 6 canonical templates in deterministic order.
render_template
Renders a template by replacing placeholders according to the context. Returns None if the template does not exist.
template_canonical_hash
Returns the SHA-256 hex of an embedded template’s content (post-render for package.json).
template_to_output_path
Converts a template path to a relative output path under .opencode/