You are not logged in.
Hi,
if I have a nested data structure (context) that's passed to a template, can I access variables of an outer context from within a nested context?
sth. like this:
{{#ParentList}}
{{#Children}}
{{Name}} is a child of {{#../Father}}
{{/Children}}
{{/ParentList}}
I understand that within the {{#Children}} tag, the context is switched to the actual element of the Children list. So if I want to access sth. that is up a level in the context hierarchy, is that possible somehow or do I have to create my data structures so that the Father value is an element of the Child to get what I want?
If it's not possible, wouldn't that be a useful extension to the mustache implementation of mORMot?
Thanks
Martin
Offline
Great, thank you
Offline