path:

This is the default modifier used in TAL expression when no other modifier is specified.

The following lines will give the same result:


            <span tal:content="data/user/name"/><span tal:content="path:data/user/name"/><span>${data/user/name}</span>

          

Inside the template or inside expression strings, you can refer to a context variable using its path in the form ${path/to/my/variable}


            <h1>${document/title}</h1><span tal:replace="string:welcome ${user/name},
this page has been readed ${page/countRead} times"/>

          

Warning

If you try to read variable that does not exist, PHPTAL will throw an exception. Use exists: to check if variable can be read