Repository navigation
template lua Reference
Leonard Ramminger edited this page Aug 22, 2026
·
1 revision
Required manifest of every template.
return {
id = "my_app",
name = "My App",
version = "0.1.0",
description = "Short description",
source_dir = "files",
output = {
path = "{{ project_slug }}",
overwrite = false,
},
}| Field | Required | Description |
|---|---|---|
id |
yes | Unique template ID (folder name recommended) |
name |
yes | Display name in list / info
|
version |
yes | Semver string for reapply policy |
description |
no | Short text |
source_dir |
yes | Relative path to source files (usually "files") |
includes |
no | List of base template IDs |
output.path |
no | Default target path when no CLI target ({{ vars }}) |
output.overwrite |
no | Default existing_path_behavior (false = error) |
includes = { "base_cpp_common" },See Includes & Layering.
Prebyte expression. Without a CLI target, Tempify renders into this path (relative to CWD).
Hooks are detected as files:
hooks/pre.luahooks/before_render.luahooks/after_render.luahooks/post.lua
See Hooks (Authors).
Separate file in template root - see layout.lua.
Tempify · Repository · Issues · Releases
Documentation lives in this wiki. For a build quickstart, see the README in the repository.
Prebyte (template engine) is a separate project bundled by Tempify.
- CLI Reference
- Questions & Answers
- Configuration
- Render Options
- Hooks (Users)
- Reapply & Diff
- Shared Template Store
- Prebyte Passthrough
- Shell Completion