Mercurial > genshi > mirror
comparison doc/templates.txt @ 649:717bbfe5bbdc trunk
Fix typo in docs. Closes #153.
author | cmlenz |
---|---|
date | Mon, 01 Oct 2007 09:32:46 +0000 |
parents | 6d4877844e28 |
children | e162edb680cf |
comparison
equal
deleted
inserted
replaced
640:ec86c89da78d | 649:717bbfe5bbdc |
---|---|
215 | 215 |
216 <div> | 216 <div> |
217 <?python | 217 <?python |
218 from genshi.builder import tag | 218 from genshi.builder import tag |
219 def greeting(name): | 219 def greeting(name): |
220 return tag.b('Hello, %s!' % name') ?> | 220 return tag.b('Hello, %s!' % name) ?> |
221 ${greeting('world')} | 221 ${greeting('world')} |
222 </div> | 222 </div> |
223 | 223 |
224 This will produce the following output: | 224 This will produce the following output: |
225 | 225 |
235 .. code-block:: genshitext | 235 .. code-block:: genshitext |
236 | 236 |
237 {% python | 237 {% python |
238 from genshi.builder import tag | 238 from genshi.builder import tag |
239 def greeting(name): | 239 def greeting(name): |
240 return tag.b('Hello, %s!' % name') | 240 return 'Hello, %s!' % name |
241 %} | 241 %} |
242 ${greeting('world')} | 242 ${greeting('world')} |
243 | 243 |
244 This will produce the following output:: | 244 This will produce the following output:: |
245 | 245 |