Work in progress...
Rimu is a structured template system. Unlike other template systems, Rimu operates on data structures, not text.
We use a data structure as a template, then using another data structure as context, produce an output data structure.
TODO
Template:
yaml
message: hello {{key}}
Context:
yaml
key: world
Output:
yaml
message: hello world
To evaluate expressions, we use Rhai.
Template:
yaml
- a
- b
- type: ops.eval
expr: a + b
Context:
yaml
a: 1
b: 2
Output:
yaml
- 1
- 2
- 3