|
spudplate
Template scaffolding compiler for spudlang .spud files
|
Spudlang is the language used to write .spud files. It is a small, line-oriented imperative language designed for one job: ask a series of questions and create files based on the answers.
A .spud file executes top-to-bottom. Questions and actions can be freely interleaved, and filesystem writes are deferred to the end of the run, so a partial run never leaves a half-written project on disk.
This reference describes the language as it stands today. The CLI reference covers the commands that operate on .spud and .spp files. The getting started guide walks through writing and running a first template.
{expr} interpolation)ask, let, mkdir, file, copy, repeat, if, include, run)repeat and if scope, alias scoping, and condition normalisation)Code samples are valid spudlang and assume any referenced asset (a from source path, an installed template named on include) is reachable when the template runs. Where a feature has known limitations, the reference describes what the language does today rather than what is planned.