Skip to content

Commit c90a027

Browse files
author
Richard Jones
committed
added info about structure/not:/path()
1 parent c8c0d7d commit c90a027

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

doc/customizing.txt

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Customising 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+
10121027
Template Macros
10131028
~~~~~~~~~~~~~~~
10141029

0 commit comments

Comments
 (0)