|
spudplate
Template scaffolding compiler for spudlang .spud files
|
An include statement - runs another bundled template inline.
More...
#include <ast.h>
An include statement - runs another bundled template inline.
Example: include claude_setup when use_claude
At install time the bundler reads the bytes of the named installed template and embeds them as a dep inside the parent spudpack. At run time the include site decodes the dep, deserialises and validates the dep program, and runs it inline at the include point with isolated variable scope. Prompts interleave with the parent's in source order; filesystem operations join the parent's deferred queue. The optional when clause skips the include entirely if false.