22Customising Roundup
33===================
44
5- :Version: $Revision: 1.74 $
5+ :Version: $Revision: 1.75 $
66
77.. This document borrows from the ZopeBook section on ZPT. The original is at:
88 http://www.zope.org/Documentation/Books/ZopeBook/current/ZPT.stx
@@ -998,6 +998,9 @@ forms:
998998 ``request/form/foo/value | default`` would simply leave the current HTML
999999 in place if the "foo" form variable doesn't exist.
10001000
1001+ You may use the python function ``path``, as in ``path("item/status")``, to
1002+ embed path expressions in Python expressions.
1003+
10011004**String Expressions** - eg. ``string:hello ${user/name}``
10021005 These expressions are simple string interpolations - though they can be just
10031006 plain strings with no interpolation if you want. The expression in the
@@ -1009,6 +1012,18 @@ forms:
10091012 equivalent to ``item/status/checklist``, assuming that ``checklist`` is
10101013 a method.
10111014
1015+ Modifiers:
1016+
1017+ **structure** - eg. ``structure python:msg.content.plain(hyperlink=1)``
1018+ The result of expressions are normally *escaped* to be safe for HTML
1019+ display (all "<", ">" and "&" are turned into special entities). The
1020+ ``structure`` expression modifier turns off this escaping - the result
1021+ of the expression is now assumed to be HTML structured text.
1022+
1023+ **not:** - eg. ``not:python:1=1``
1024+ This simply inverts the logical true/false value of another expression.
1025+
1026+
10121027Template Macros
10131028~~~~~~~~~~~~~~~
10141029
0 commit comments