Author a template¶
A template is a Git repository containing template.toml and the files to render.
Start from a local checkout:
Edit the generated manifest and render root, then commit before sharing. The manifest reference defines layout and declarations.
Define inputs¶
Declare questions for choices a person should make,
computed values for derived answers,
and data sources for structured lookup data.
Use .jinja files for rendered text; other files are copied unchanged.
See the context reference for available values and filters.
Enable editor completion¶
Keep the directive generated at the top of template.toml:
An editor with TOML schema support can complete manifest fields and catch structural mistakes.
An offline schema copy can be associated through editor settings or a local directive.
The schema follows published main; it does not evaluate expressions or inspect repository paths.
See schema validation limits.
Preview and test¶
git tpl questions .
git tpl lint . --dirty
git tpl render . --dirty -o /tmp/template-preview --defaults
git tpl test
Run the output's own build or linters in the preview directory. Rendering does not run them for you. Use the testing guide for declarative cases and snapshots, and local development to iterate against an attached project.
Publishing¶
There is nothing to package and nowhere to register.
Push the template repository and share the URL passed to git tpl init.
Write a README and license outside the rendered directory so visitors can inspect them before generating a project.
On GitHub, add both git-tpl and template topics:
Browse templates on GitHub. These topics are a discovery convention, not a registry; templates work without them.