Mercurial > genshi > genshi-test
changeset 612:09de73cae3d5
Using `html` code-blocks for examples isn't so nice when viewing the docs over Trac, so change them to `xml`.
author | cmlenz |
---|---|
date | Wed, 29 Aug 2007 19:34:04 +0000 |
parents | 16b1be35c265 |
children | d8f961381f75 |
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> @@ -395,7 +395,7 @@ Given ``x=42`` in the context data, this would produce: -.. code-block:: html +.. code-block:: xml <div> <span>42 7 52</span> @@ -434,7 +434,7 @@ Given ``foo={'class': 'collapse'}`` in the template context, this would produce: -.. code-block:: html +.. code-block:: xml <ul> <li class="collapse">Bar</li> @@ -443,7 +443,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> @@ -468,7 +468,7 @@ Given ``bar='Bye'`` in the context data, this would produce: -.. code-block:: html +.. code-block:: xml <ul> <li>Bye</li> @@ -493,7 +493,7 @@ Given ``bar='Bye'`` in the context data, this would produce: -.. code-block:: html +.. code-block:: xml <div> Bye @@ -519,7 +519,7 @@ This would be rendered as: -.. code-block:: html +.. code-block:: xml <div> <b>foo</b>