Extensible functional template engine for text document generation, incl. various high-level Markdown features
npm install @thi.ng/transclude
!npm downloads

> [!NOTE]
> This is one of 214 standalone projects, maintained as part
> of the @thi.ng/umbrella monorepo
> and anti-framework.
>
> 🚀 Please help me to work full-time on these projects by sponsoring me on
> GitHub. Thank you! ❤️
- About
- Status
- Related packages
- Installation
- Dependencies
- API
- Authors
- License
Extensible functional template engine for text document generation, incl. various high-level Markdown features.
This package evolved from this monorepo's readme generator toolchain and
currently is mainly used to generate all ~350 readme & changelog files in this
repo, but otherwise is not bound to this project in any way.
Please see/tools/src/readme.ts
for a concrete usage example...
STABLE - used in production
Search or submit any issues for this package
- @thi.ng/hiccup-markdown - Markdown parser & serializer from/to Hiccup format
- @thi.ng/markdown-table - Markdown table formatter/generator with support for column alignments
- @thi.ng/proctext - Extensible procedural text generation engine with dynamic, mutable state, indirection, randomizable & recursive variable expansions
- @thi.ng/tangle - Literate programming code block tangling / codegen utility, inspired by org-mode & noweb
``bash`
yarn add @thi.ng/transclude
ESM import:
`ts`
import * as tra from "@thi.ng/transclude";
For Node.js REPL:
`js`
const tra = await import("@thi.ng/transclude");
Package sizes (brotli'd, pre-treeshake): ESM: 1.96 KB
- @thi.ng/api
- @thi.ng/checks
- @thi.ng/errors
- @thi.ng/file-io
- @thi.ng/logger
- @thi.ng/strings
- @thi.ng/transducers
Note: @thi.ng/api is in _most_ cases a type-only import (not used at runtime)
TODO
If this project contributes to an academic publication, please cite it as:
`bibtex``
@misc{thing-transclude,
title = "@thi.ng/transclude",
author = "Karsten Schmidt",
note = "https://thi.ng/transclude",
year = 2022
}
© 2022 - 2026 Karsten Schmidt // Apache License 2.0