diff options
| author | Martin Atkins <mart@degeneration.co.uk> | 2017-07-27 18:15:56 -0700 |
|---|---|---|
| committer | Martin Atkins <mart@degeneration.co.uk> | 2017-07-27 18:15:56 -0700 |
| commit | 523939034f6b07dcd1871a3ccbe2466dcc9688fd (patch) | |
| tree | 285c7295bfb02f98345e10c5fd8805e405518e30 /cmd | |
| parent | fffca3d205974ed0288312ab6781b0349a256000 (diff) | |
ext/include: extension for including bodies into other bodies
This package implements a language extension that allows configuration
authors to include the content of another file into a body, using syntax
like this:
include {
path = "./foo.zcl"
}
This is implemented as a transform.Transformer so that it can be used
as part of a transform chain when decoding nested block structures to
allow includes at any arbitrary point.
This capability is not built into the language because certain
applications will offer higher-level constructs for connecting multiple
separate config files, which may e.g. have a separate evaluation scope
for each file, etc.
Diffstat (limited to 'cmd')
0 files changed, 0 insertions, 0 deletions
