Skip to content

Tempblot

Generate files from TypeScript-powered templates with typed params, imports, top-level await, and editor-friendly syntax.

TypeScript in templates

Prepare data with normal TypeScript inside <setup>, including imports, top-level await, and reusable helper functions.

Typed configuration

Pass params into .blot files with compilePath, then read them with useParams using explicit generics or module augmentation.

Simple interpolation

Write the output you want and interpolate setup values with << >> where they belong.

Editor-friendly files

Use <output lang="json"> and other language hints so generated formats remain readable while you edit templates.

Great for generated assets

Generate JSON, config files, fixtures, documentation snippets, or any other text output from a small .blot source file.

Start small

Learn the file structure, params API, and comments support in the basic usage guide.