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

ID Purpose
basic_cpp Standard template: questions, .pbt, optional CI, post hook, two fixtures
base_cpp_common Minimal base for includes
layered_cpp_base Base layer for layering tests
layered_ci_overlay CI overlay (GitHub workflow)
layered_cpp_product Product from base + overlay + merge
advanced_hooks_layout layout.lua, all hook phases, scripts
conflict_parent_base / conflict_child_error Error with file_conflicts = "error"

Quick start

# From repo root with templates/ = tests/test_templates
export 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

Topic Template
Questions & validation basic_cpp/questions.lua
Layering layered_cpp_product
Layout rules advanced_hooks_layout/layout.lua
Hooks advanced_hooks_layout/hooks/
Snapshot tests basic_cpp/tests/default_no_ci/
Lock + hooks advanced_hooks_layout/tests/hooks_and_lock/

See also

Your First Template · Template Authoring

Clone this wiki locally