No description
  • TypeScript 84.9%
  • JavaScript 12.4%
  • CSS 2.2%
  • Shell 0.5%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-07-25 21:35:26 +02:00
.husky Quality improvements: logo, pre-commit, tests, README, Pages deploy 2026-07-15 20:42:24 +02:00
css add translations 2026-07-24 04:58:42 +02:00
demo Quality improvements: logo, pre-commit, tests, README, Pages deploy 2026-07-15 20:42:24 +02:00
locale add translations 2026-07-24 04:58:42 +02:00
scripts add translations 2026-07-24 04:58:42 +02:00
src correct css paths 2026-07-25 10:28:31 +02:00
test 0.1.7 2026-07-19 23:16:41 +02:00
.gitignore Initial commit 2026-07-14 09:20:48 +02:00
AGENTS.md better typings + switch to pnpmn 2026-07-22 18:17:16 +02:00
eslint.config.mjs Quality improvements: logo, pre-commit, tests, README, Pages deploy 2026-07-15 20:42:24 +02:00
jest.config.js 0.1.7 2026-07-19 23:16:41 +02:00
LICENSE Initial commit 2026-07-14 09:20:48 +02:00
logo.svg Quality improvements: logo, pre-commit, tests, README, Pages deploy 2026-07-15 20:42:24 +02:00
package.json 0.1.15 2026-07-25 21:35:26 +02:00
pnpm-lock.yaml distribute messages.json 2026-07-25 07:07:26 +02:00
README.md Use absolute Codeberg URL for README logo so it renders on npmjs.com 2026-07-25 19:48:59 +02:00
tsconfig.json better typings + switch to pnpmn 2026-07-22 18:17:16 +02:00

@fiduswriter/document-template-editor

@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.