September 8, 2026
MarkCharm can bind external data sources (JSON, YAML, TOML) directly into your document using the {$DATA} pragma.
Place {$DATA filename.json} in the preamble. The compiler reads the file, flattens nested keys with underscores, and injects them as macros accessible via \key_name.
data.json| Property | Value |
|---|---|
| Project | MarkCharm |
| Version | 0.74.0 |
| License | MIT |
| Tests Passed | 1640 |
| Coverage | 92% |
The MarkCharm compiler (version 0.74.0) has 1640 tests passing with 92% code coverage. It is released under the MIT license.
Data binding separates content from data, enabling:
| Format | Extension | Example |
|---|---|---|
| JSON | .json |
{$DATA report.json} |
| YAML | .yaml |
{$DATA config.yaml} |
| TOML | .toml |
{$DATA settings.toml} |