-
Notifications
You must be signed in to change notification settings - Fork 1
dot
Nat! edited this page Mar 1, 2023
·
3 revisions
Dots between identifiers without spaces are your usual key value coding keypath.
{{ bag.a }}
Output:
a (value)
If you leave spaces between the dots, the functionality expands, so that you can interpose arbitrary objects
{# 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.