- Given that
{{ . }} resolves as the current top of the context stack;
- And when any falsey segment in a dotted name is encountered, the whole name yields
'';
- A name like
{{ .name }} should imply {{ [current scope].name }};
- Thus, it must resolve as truthy only if a member of the current scope matches
name.
This is a one-liner to implement in Mustache.php, and seems completely in line with current spec, so I'm considering adding it. Can we get this into spec v1.2?
c.f. bobthecow/mustache.php#98
{{ . }}resolves as the current top of the context stack;'';{{ .name }}should imply{{ [current scope].name }};name.This is a one-liner to implement in Mustache.php, and seems completely in line with current spec, so I'm considering adding it. Can we get this into spec v1.2?
c.f. bobthecow/mustache.php#98