Skip to content
Nat! edited this page Mar 1, 2023 · 3 revisions

Dots between identifiers without spaces are your usual key value coding keypath.

Example 1

{{ bag.a }}

Output:

a (value)

If you leave spaces between the dots, the functionality expands, so that you can interpose arbitrary objects

Example 2

{# Then you can also interpose methods if you want  #}
{%
   z = [NSDictionary dictionaryWithObject:@"VfL Bochum 1848" forKey:@"c"]
   y = [NSDictionary dictionaryWithObject:z forKey:@"b"]
   x = [NSDictionary dictionaryWithObject:y forKey:@"a"]
   {{ x . a . b .c }}
   {{ x . a . [self objectForKey:@"b"] . c }}
%}

Output:

VfL Bochum 1848

See properties.plist for the values used in this example.

Clone this wiki locally