Mercurial > p > roundup > code
diff doc/customizing.txt @ 1448:bbb1e5f8fc93
added info about structure/not:/path()
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Tue, 18 Feb 2003 21:10:42 +0000 |
| parents | 2f6647cf5345 |
| children | fd806ad85621 |
line wrap: on
line diff
--- a/doc/customizing.txt Tue Feb 18 10:58:33 2003 +0000 +++ b/doc/customizing.txt Tue Feb 18 21:10:42 2003 +0000 @@ -2,7 +2,7 @@ Customising Roundup =================== -:Version: $Revision: 1.74 $ +:Version: $Revision: 1.75 $ .. This document borrows from the ZopeBook section on ZPT. The original is at: http://www.zope.org/Documentation/Books/ZopeBook/current/ZPT.stx @@ -998,6 +998,9 @@ ``request/form/foo/value | default`` would simply leave the current HTML in place if the "foo" form variable doesn't exist. + You may use the python function ``path``, as in ``path("item/status")``, to + embed path expressions in Python expressions. + **String Expressions** - eg. ``string:hello ${user/name}`` These expressions are simple string interpolations - though they can be just plain strings with no interpolation if you want. The expression in the @@ -1009,6 +1012,18 @@ equivalent to ``item/status/checklist``, assuming that ``checklist`` is a method. +Modifiers: + +**structure** - eg. ``structure python:msg.content.plain(hyperlink=1)`` + The result of expressions are normally *escaped* to be safe for HTML + display (all "<", ">" and "&" are turned into special entities). The + ``structure`` expression modifier turns off this escaping - the result + of the expression is now assumed to be HTML structured text. + +**not:** - eg. ``not:python:1=1`` + This simply inverts the logical true/false value of another expression. + + Template Macros ~~~~~~~~~~~~~~~
