|
spudplate
Template scaffolding compiler for spudlang .spud files
|
A five-minute tour from install to your first running template.
One-liner for Linux x86_64 and macOS arm64:
The binary lands in ~/.local/bin. Set PREFIX=/usr/local (and run with sudo) to install system-wide, or VERSION=v0.1.0 to pin to a specific release.
Other options:
PATH. Each release ships an SHA256SUMS you can verify against.Build from source. You need CMake and a C++20 compiler.
Confirm the install:
Create hello.spud:
Three things are happening here:
ask prompts the user and binds the answer to name.mkdir hello as dir creates a directory and binds its path to dir so later statements can refer back to it.file dir/greeting.txt content ... writes a file using a string expression.Spudplate parses, validates, and bundles every asset the template references into a single .spp file under your install root. The default location is ~/.local/share/spudplate/hello.spp.
You can also validate without installing:
You'll see:
After answering, spudplate creates hello/greeting.txt in the current working directory.
Run it again from anywhere - the bundled assets travel with the template, so the run is cwd-independent.
.spp files are laid out..spp file. The recipient runs it directly with spudplate run path/to/template.spp - no install step required.If something is missing or broken, the issue tracker is the right place to flag it.