Implement 'meta' statement which allows to define inside template some metainformation, accessible from the outside template. For instance, template:
{% meta json %}
{
"output-type": "xhtml",
"generator": "some-generator"
}
{% endmeta %}
after parsing:
Template tpl; tpl.Load(...); auto& meta = tpl.GetMetaData(); auto generatorType = meta["generator"]; // "some-generator" auto outputType = meta["output-type"]; // "xhtml"
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4