5.5.3 Autocalling

Cheetah automatically detects functions and methods in Cheetah $variables and calls them if the parentheses have been left off. Our previous example can be further simplified to:

  $customers.kerr.address

As another example, if 'a' is an object, 'b' is a method

  $a.b

is equivalent to

  $a.b()

If b returns a dictionary, then following variations are possible

  $a.b.c  --OR--  $a.b().c  --OR--  $a.b()['c']
where 'c' is a key in the dictionary that a.b() returns.

Further notes: