ro wrote:
>> You could also do something like:.
>>
>> ${display_pages(current_page and current_page.sub_pages or
>> space.root_pages)}
>>
>
> It is very cool.
> Which document introduce the syntax like this?
>
>
This isn't strictly Kid syntax. It is Python itself. Inside of the ${}
you are able to you arbitrary Python expressions.
David
--
http://www.traceback.org
GPG keyID #6272EDAF on http://pgp.mit.edu
Key fingerprint = 8BAA 7E11 8856 E148 6833 655A 92E2 3E00 6272 EDAF
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
kid-template-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/kid-template-discuss