script-format 1.1.0

A simple DSL to format data via rhai scripting
Documentation
1
2
3
4
5
6
7
SET_INDENT(".. ");                    // sets the current indent string to ".. "
- "Person Details:";                  // - emits a single message
- NL;                                 // NL emits a newline
IND ++ "Name: " ++ person.name ++ NL; // ++ emits the message and concatenates it
IND ++ "Age: " ++ person.age ++ NL;   // ++ automatically converts the values to strings
- IND(2);                             // custom operator IND indents the message
person.age > 18 then_emit("- Adult"); // custom operator then_emit emits a message conditionally