@x12i/reportix-composer-templates
v0.6.0
Published
Built-in report templates for Reportix Composer (clean-report, letter, technical-doc).
Maintainers
Readme
@x12i/reportix-composer-templates
Built-in starter templates shipped with Reportix Composer. Used by @x12i/reportix-composer-core automatically;
you normally do not install this package unless you are building a custom template loader.
Built-in templates
| Id | Purpose |
| --- | --- |
| clean-report | Clean multi-section report layout |
| letter | Letter / correspondence layout |
| technical-doc | Technical documentation layout |
| cover-report | Bold report with a full-bleed gradient cover page |
Each template directory contains:
template.json— zod-validated manifestlayout.html— HTML shell with<!--CONTENT-->,<!--TITLE-->, and meta slot tokensstyles.css— stylesheet injected before</head>
Install
npm install @x12i/reportix-composer-templatesUsage
import { getBuiltinTemplatesDir, listBuiltinTemplateIds } from "@x12i/reportix-composer-templates";
console.log(listBuiltinTemplateIds());
// => ["clean-report", "cover-report", "letter", "technical-doc"]
const dir = getBuiltinTemplatesDir();
// absolute path to the packaged builtin/ folderUser-created templates are not stored here. They live under ~/.reportix-composer/templates (or
REPORTIX_COMPOSER_TEMPLATES_DIR) and are managed by TemplateStore in @x12i/reportix-composer-core.
