Groups
Sign in
Groups
Genshi
Conversations
About
Send feedback
Help
genshi on gae 2010
118 views
Skip to first unread message
retif
unread,
Nov 22, 2009, 12:47:13 PM
11/22/09
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Genshi
so we have working genshi on appengine today?)
retif
unread,
Dec 4, 2009, 9:40:33 AM
12/4/09
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Genshi
genshi is working on appengine!!)))
Japboy
unread,
Dec 4, 2009, 11:16:13 AM
12/4/09
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Genshi
wonder how i do it?
Alex
unread,
Dec 4, 2009, 12:25:40 PM
12/4/09
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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 AM
12/5/09
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Genshi
thanks, alex
it works!
thanks again for exmaple codes
Reply all
Reply to author
Forward
0 new messages