Chameleon TAL shorthand notation

Saturday, May 3, 2014

I'm trying to get into Chameleon as template engine for the pyramid framework. While studying existing code, I've stumbled over some constructions, that isn't documented in the TAL reference, but still appear to work.

<title><tal:title condition="page_title | None">${page_title} -- </tal:title>Name</title>
<li tal:attributes="class section_name == 'home' and 'active' or ''">

Is this a Chameleon extension, and if so, is it documented somewhere?