changeset 237:ad52b350e132

Flatten outline of XML templating documentation.
author cmlenz
date Tue, 12 Sep 2006 15:59:10 +0000
parents 66e702ab4ae4
children 4478cf58e873
files doc/xml-templates.txt
diffstat 1 files changed, 18 insertions(+), 21 deletions(-) [+]
line wrap: on
line diff
--- a/doc/xml-templates.txt
+++ b/doc/xml-templates.txt
@@ -151,17 +151,13 @@
 simply be used as an element.
 
 
-Available Directives
+Conditional Sections
 ====================
 
-
-Conditional Sections
---------------------
-
 .. _`py:if`:
 
 ``py:if``
-`````````
+---------
 
 The element is only rendered if the expression evaluates to a truth value::
 
@@ -188,10 +184,11 @@
 .. _`py:when`:
 .. _`py:otherwise`:
 
-``py:choose`` / ``py:when`` / ``py:otherwise``
-``````````````````````````````````````````````
+``py:choose``
+-------------
 
-This set of directives provides advanced contional processing for rendering one
+The ``py:choose`` directive, in combination with the directives ``py:when``
+and ``py:otherwise`` provides advanced contional processing for rendering one
 of several alternatives. The first matching ``py:when`` branch is rendered, or,
 if no ``py:when`` branch matches, the ``py:otherwise`` branch is be rendered.
 
@@ -227,12 +224,12 @@
 
 
 Looping
--------
+=======
 
 .. _`py:for`:
 
 ``py:for``
-``````````
+----------
 
 The element is repeated for every item in an iterable::
 
@@ -256,13 +253,13 @@
 
 
 Snippet Reuse
--------------
+=============
 
 .. _`py:def`:
 .. _`macros`:
 
 ``py:def``
-``````````
+----------
 
 The ``py:def`` directive can be used to create macros, i.e. snippets of
 template code that have a name and optionally some parameters, and that can be
@@ -318,7 +315,7 @@
 .. _`py:match`:
 
 ``py:match``
-````````````
+------------
 
 This directive defines a *match template*: given an XPath expression, it
 replaces any element in the template that matches the expression with its own
@@ -358,12 +355,12 @@
 
 
 Variable Binding
-----------------
+================
 
 .. _`with`:
 
 ``py:with``
-```````````
+-----------
 
 The ``py:with`` directive lets you assign expressions to variables, which can
 be used to make expressions inside the directive less verbose and more
@@ -396,12 +393,12 @@
 
 
 Structure Manipulation
-----------------------
+======================
 
 .. _`py:attrs`:
 
 ``py:attrs``
-````````````
+------------
 
 This directive adds, modifies or removes attributes from the element::
 
@@ -429,7 +426,7 @@
 .. _`py:content`:
 
 ``py:content``
-``````````````
+--------------
 
 This directive replaces any nested content with the result of evaluating the
 expression::
@@ -450,7 +447,7 @@
 .. _`py:replace`:
 
 ``py:replace``
-``````````````
+--------------
 
 This directive replaces the element itself with the result of evaluating the
 expression::
@@ -471,7 +468,7 @@
 .. _`py:strip`:
 
 ``py:strip``
-````````````
+------------
 
 This directive conditionally strips the top-level element from the output. When
 the value of the ``py:strip`` attribute evaluates to ``True``, the element is
Copyright (C) 2012-2017 Edgewall Software