move examples to doc directory

--HG--
branch : trunk
This commit is contained in:
holger krekel
2009-10-29 17:54:37 +01:00
parent 270ac2bc0d
commit 7aee121bd7
30 changed files with 0 additions and 1 deletions

13
doc/example/genhtml.py Normal file
View File

@@ -0,0 +1,13 @@
from py.xml import html
paras = "First Para", "Second para"
doc = html.html(
html.head(
html.meta(name="Content-Type", value="text/html; charset=latin1")),
html.body(
[html.p(p) for p in paras]))
print unicode(doc).encode('latin1')