genshi on gae 2010

118 views
Skip to first unread message

retif

unread,
Nov 22, 2009, 12:47:13 PM11/22/09
to Genshi
so we have working genshi on appengine today?)

retif

unread,
Dec 4, 2009, 9:40:33 AM12/4/09
to Genshi
genshi is working on appengine!!)))

Japboy

unread,
Dec 4, 2009, 11:16:13 AM12/4/09
to Genshi
wonder how i do it?

Alex

unread,
Dec 4, 2009, 12:25:40 PM12/4/09
to gen...@googlegroups.com
file.py
from genshi.template import TemplateLoader
loader = TemplateLoader(['.'], auto_reload=True)
tmpl = loader.load('hello.html')
stream = tmpl.generate(name='world', times=2)
print stream.render('html')

hello.html
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en"
xmlns:py="http://genshi.edgewall.org/">
<body>
<h1>web.py with Genshi</h1>
<hr />
<ul py:if="times">
<li py:for="i in range(times)">Hello, $name!</li>
</ul>
</body>
</html>

this is one of examples...just uploaded it to appengine with trunk
genshi and it works(i dont know how about latest release, but trunk
version works)


2009/12/4 Japboy <poa...@gmail.com>:
> --
>
> You received this message because you are subscribed to the Google Groups "Genshi" group.
> To post to this group, send email to gen...@googlegroups.com.
> To unsubscribe from this group, send email to genshi+un...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/genshi?hl=en.
>
>
>

Japboy

unread,
Dec 5, 2009, 4:06:08 AM12/5/09
to Genshi
thanks, alex

it works!

thanks again for exmaple codes
Reply all
Reply to author
Forward
0 new messages