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

Within MulleScion you can use regular Objective-C method call syntax.

Example 1

{{ [NSDate date] }}

Output:

2023-03-01T00:26:06Z

But you can also use '[' ']' in the "modern" way, to access dictonaries and array. So if you don't want to write objectAtIndex: or objectForKey: you can also use:

Example 2

{{ bag[ "a" ] }}  # where bag is a NSDictionary
{{ list[ 1] }}    # where list is a NSArray

Output:

a (value)  # where bag is a NSDictionary
1 (value)    # where list is a NSArray

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

Clone this wiki locally