Hi,
I'm using Mustache for Pharo, and according to mustache docs (
https://mustache.github.io/mustache.5.html ), when a key is not found, it
should look into parents contexts.
However that does not seem to be the case:
str := '{{root}}
{{#items}}
{{root}}.{{name}}
{{/items}}'.
data := {
'root' -> 'ROOT'.
'items' -> {
{ 'name' -> 'first' } asDictionary.
{ 'name' -> 'second' } asDictionary.
}
} asDictionary.
(MustacheTemplate on: str) value: data.
I should get "ROOT.first", etc., but instead I get ".first", ".second".
Thanks,
Peter