eb-local.sites¶
- module eb-local.sites src/sites.zig[source][autodoc]¶
Site file templates, built into the program or kept by a site in a file:
eb-local sitelists the built-in ones, and renders and installs either kind. A template is TOML with {{name}} placeholders, which –set name=value must fill, and {{name:default}} ones, which take the default unless set. Values go inside TOML strings, so a value with a quote, a backslash or a control character is refused.
Types¶
- pub const Template = struct[source][autodoc]¶
A site file template: the name
eb-local sitetakes, and its TOML text with placeholders.
Error sets¶
Functions¶
- pub fn find(name: []const u8) ?Template[source][autodoc]¶
The built-in template called
name, or null when there is none.
- pub fn validValue(v: []const u8) bool[source][autodoc]¶
A value that stays one TOML string: printable, no quote or backslash.
- pub fn parseSet(a: Allocator, arg: []const u8, d: *Diagnostic) Error!Set[source][autodoc]¶
Parse NAME=VALUE.