No description
- TypeScript 84.9%
- JavaScript 12.4%
- CSS 2.2%
- Shell 0.5%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| .husky | ||
| css | ||
| demo | ||
| locale | ||
| scripts | ||
| src | ||
| test | ||
| .gitignore | ||
| AGENTS.md | ||
| eslint.config.mjs | ||
| jest.config.js | ||
| LICENSE | ||
| logo.svg | ||
| package.json | ||
| pnpm-lock.yaml | ||
| README.md | ||
| tsconfig.json | ||
@fiduswriter/document-template-editor
Document template designer and editor for Fidus Writer
What it does
Provides the full document template editing system for Fidus Writer. Includes a visual template designer, template extraction from existing documents, adjustment of documents to conform to templates, and template import/export.
Exports
| Export | Description |
|---|---|
DocumentTemplateDesigner |
Visual designer for creating and editing document templates |
extractTemplate |
Extract a template from an existing Fidus Writer document |
adjustDocToTemplate |
Adjust a document's content to conform to a target template |
DocumentTemplateExporter |
Export templates to .fidustemplate format |
DocumentTemplateImporter |
Import templates from .fidustemplate format |
DocumentTemplateAdmin |
Admin UI for managing individual document templates |
DocumentTemplateListAdmin |
Admin UI for listing all document templates |
updateTemplateFile |
Update an existing template file |
helpSchema, serializeHelp |
Schema definition and serializer for template help text |
Installation
npm install @fiduswriter/document-template-editor
Usage
import {
DocumentTemplateDesigner,
extractTemplate,
adjustDocToTemplate,
DocumentTemplateExporter,
DocumentTemplateImporter,
} from "@fiduswriter/document-template-editor";
Development
npm install # Install dependencies
npm run build # Compile TypeScript to dist/
npm run typecheck # Check types without emitting
npm run lint # Lint with ESLint
npm run format:check # Check formatting with Prettier
License
AGPL-3.0 — see LICENSE for details.