Mercurial > genshi > mirror
changeset 614:6d584267d410 stable-0.4.x
Ported [728] to 0.4.x branch.
author | cmlenz |
---|---|
date | Wed, 29 Aug 2007 19:36:01 +0000 |
parents | f35e1080420c |
children | |
files | doc/xml-templates.txt |
diffstat | 1 files changed, 13 insertions(+), 13 deletions(-) [+] |
line wrap: on
line diff
--- a/doc/xml-templates.txt +++ b/doc/xml-templates.txt @@ -112,7 +112,7 @@ Given the data ``foo=True`` and ``bar='Hello'`` in the template context, this would produce: -.. code-block:: html +.. code-block:: xml <div> <b>Hello</b> @@ -153,7 +153,7 @@ This would produce the following output: -.. code-block:: html +.. code-block:: xml <div> <span>1</span> @@ -172,7 +172,7 @@ This would produce the following output: -.. code-block:: html +.. code-block:: xml <div> <span>1</span> @@ -197,7 +197,7 @@ Given ``items=[1, 2, 3]`` in the context data, this would produce: -.. code-block:: html +.. code-block:: xml <ul> <li>1</li><li>2</li><li>3</li> @@ -239,7 +239,7 @@ The above would be rendered to: -.. code-block:: html +.. code-block:: xml <div> <p class="greeting"> @@ -264,7 +264,7 @@ The above would be rendered to: -.. code-block:: html +.. code-block:: xml <div> <p class="greeting"> @@ -307,7 +307,7 @@ This would result in the following output: -.. code-block:: html +.. code-block:: xml <div> <span> @@ -358,7 +358,7 @@ Given ``x=42`` in the context data, this would produce: -.. code-block:: html +.. code-block:: xml <div> <span>42 7 52</span> @@ -397,7 +397,7 @@ Given ``foo={'class': 'collapse'}`` in the template context, this would produce: -.. code-block:: html +.. code-block:: xml <ul> <li class="collapse">Bar</li> @@ -406,7 +406,7 @@ Attributes with the value ``None`` are omitted, so given ``foo={'class': None}`` in the context for the same template this would produce: -.. code-block:: html +.. code-block:: xml <ul> <li>Bar</li> @@ -431,7 +431,7 @@ Given ``bar='Bye'`` in the context data, this would produce: -.. code-block:: html +.. code-block:: xml <ul> <li>Bye</li> @@ -456,7 +456,7 @@ Given ``bar='Bye'`` in the context data, this would produce: -.. code-block:: html +.. code-block:: xml <div> Bye @@ -482,7 +482,7 @@ This would be rendered as: -.. code-block:: html +.. code-block:: xml <div> <b>foo</b>