Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 0
layout lua
Leonard Ramminger edited this page Aug 22, 2026
·
2 revisions
Explicit control of source and target paths per file.
By default, Tempify mirrors the folder structure under files/ into the target. layout.lua overrides that:
- different target paths (
docs/readme.txt→README.md) - raw copy instead of Prebyte (
render = false) - exclude files (
exclude = true)
layout.lua in template root - a list of rules:
return {
{
source="docs/readme.txt.pbt",
target="README.md.pbt",
render=true,
},
{
source="raw/static.txt.pbt",
target="static/output.txt",
render=false,
},
{
source="notes/todo.txt.pbt",
exclude=true,
},
}| Field | Description |
|---|---|
source | Relative path under source_dir |
target | Relative output path (optional; default = source with .pbt suffix logic) |
render | true = Prebyte, false = raw copy |
exclude | true = do not include file in output |
Layout rules from includes and the current template are appended (not replaced). Order follows the include chain.
tempify inspect advanced_hooks_layoutReference template: tests/test_templates/advanced_hooks_layout/
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