diff options
-rw-r--r-- | doc/build/content/defs.txt | 8 | ||||
-rw-r--r-- | doc/build/content/filtering.txt | 2 |
2 files changed, 7 insertions, 3 deletions
diff --git a/doc/build/content/defs.txt b/doc/build/content/defs.txt index d3cb067..2b89aa9 100644 --- a/doc/build/content/defs.txt +++ b/doc/build/content/defs.txt @@ -139,7 +139,7 @@ To achieve this, the target def is invoked using the `<%call>` tag instead of th </table> </%def> - <%call expr="buildtable"> + <%call expr="buildtable()"> I am the table body. </%call> @@ -212,7 +212,11 @@ Produces (whitespace formatted): <table> <tr> <td>Body data: 1</td><td>Body data: 2</td><td>Body data: 3</td> + </tr> + <tr> <td>Body data: 4</td><td>Body data: 5</td><td>Body data: 6</td> + </tr> + <tr> <td>Body data: 7</td><td>Body data: 8</td><td>Body data: 9</td> </tr> </table> @@ -235,7 +239,7 @@ You don't have to stick to calling just the `body()` function. The caller can d </%def> ## calls the layout def - <%call expr="layout"> + <%call expr="layout()"> <%def name="header()"> I am the header </%def> diff --git a/doc/build/content/filtering.txt b/doc/build/content/filtering.txt index 4e5655a..86a332f 100644 --- a/doc/build/content/filtering.txt +++ b/doc/build/content/filtering.txt @@ -131,7 +131,7 @@ This is because `somedef()` fully executes before the expression returns the res Mako provides two ways to work around this. One is by applying buffering to the `%def` itself: - <%def name="somedef()" buffered="true"> + <%def name="somedef()" buffered="True"> somedef's results </%def> |