Skip to content

Example Catalog

Leonard Ramminger edited this page Aug 22, 2026 · 1 revision

Example Catalog

Reference templates in the repository (tests/test_templates/).

Overview

IDPurpose
basic_cppStandard template: questions, .pbt, optional CI, post hook, two fixtures
base_cpp_commonMinimal base for includes
layered_cpp_baseBase layer for layering tests
layered_ci_overlayCI overlay (GitHub workflow)
layered_cpp_productProduct from base + overlay + merge
advanced_hooks_layoutlayout.lua, all hook phases, scripts
conflict_parent_base / conflict_child_errorError with file_conflicts = "error"

Quick start

# From repo root with templates/ = tests/test_templatesexport TEMPIFY_TEMPLATE_PATH=tests/test_templates # or workspace config
tempify list
tempify basic_cpp /tmp/out --set project_name=Demo --set name_slug=demo \
--set namespace=demo_ns --set include_ci=false --set author=Me
tempify test basic_cpp
tempify inspect layered_cpp_product

What to learn where

TopicTemplate
Questions & validationbasic_cpp/questions.lua
Layeringlayered_cpp_product
Layout rulesadvanced_hooks_layout/layout.lua
Hooksadvanced_hooks_layout/hooks/
Snapshot testsbasic_cpp/tests/default_no_ci/
Lock + hooksadvanced_hooks_layout/tests/hooks_and_lock/

See also

Your First Template · Template Authoring

Clone this wiki locally