@x12i/mdreports-templates
v0.4.0
Published
Built-in report templates for Markdown Reports Studio (clean-report, letter, technical-doc).
Maintainers
Readme
@x12i/mdreports-templates
Built-in starter templates shipped with Markdown Reports Studio. Used by @x12i/mdreports-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 |
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/mdreports-templatesUsage
import { getBuiltinTemplatesDir, listBuiltinTemplateIds } from "@x12i/mdreports-templates";
console.log(listBuiltinTemplateIds());
// => ["clean-report", "letter", "technical-doc"]
const dir = getBuiltinTemplatesDir();
// absolute path to the packaged builtin/ folderUser-created templates are not stored here. They live under ~/.mdreports/templates (or
MDREPORTS_TEMPLATES_DIR) and are managed by TemplateStore in @x12i/mdreports-core.
