You are not logged in.
Pages: 1
Is there a way to get a list of the variables a document contains after I parse it.
For example after
mustache := TSynMustache.Parse(
'Hello {{name}}'#13#10'You have just won {{value}} dollars!');
I want to be able to call something like
var variablelist:=mustache.getVarList;
and receive a list that contains "name" and "value". I dug around in the code but did not find something, but I imagine mustache must have such list somewhere after parsing, so I think I must have missed something (ovious).
Offline
The template is indeed parsed and an internal in-memory representation is filled.
But this was not made public yet.
Please try with https://github.com/synopse/mORMot2/commit/a2adff6f
Now you can access mustache.Tags[] to retrieve the internal list.
Offline
Thanks, that works for me.
Now I'm a bit embarrased that I did not find the ftags while digging around.
Offline
Pages: 1