If you use Cheetah, please support the project and register by clicking here:


5.5.2 Dictionary Access

NameMapper syntax allows access to dictionary items with the same dotted notation used to access object attributes in Python. This aspect of NameMapper syntax is known as 'Unified Dotted Notation'. For example, with Cheetah it is possible to write:

   $customers()['kerr'].address()  --OR--  $customers().kerr.address()
where the second form is in NameMapper syntax.

This works only with dictionary keys that also happen to be valid Python identifiers.

If you use Cheetah, please support the project and register by clicking here: