# `qlat.tempita` — Tempita Template Substitution Source: `qlat/qlat/tempita.py` > **Note:** Update this document when updating the source file. ## Outline 1. [Overview](#overview) 2. [Usage](#usage) 3. [Examples](#examples) --- ## Overview The `qlat.tempita` module is a command-line utility for code generation using [Tempita](https://github.com/cython/cython/blob/master/Cython/Tempita/_tempita.py) template substitution, as bundled with Cython. It reads a Tempita template file, performs `{{expr}}` substitution via `Cython.Tempita.sub`, and writes the result to an output file. This is used internally by the qlat build system to generate C++ / Cython source files from parameterized templates. The module is a standalone script (not an importable library). It takes exactly two positional arguments — the input template path and the output file path. This module is the qlat-package counterpart of `qlat_utils.tempita`. Both are identical in functionality; they exist in separate packages so that each package can invoke Tempita substitution without depending on the other. --- ## Usage ```bash python -m qlat.tempita