I havent looked much into string.template . I think i will have to now.<br>I went trying MAKO, Cheetah, Genshi and some others too. But in less time, I got confused. I didn;t need a total language. Rather I just want to write my xHTML/CSS/JS in a page with embedded placeholders like ${variableName}
<br>or ${ModuleName.functiontoBeCaller(args, ...)}<br><br>etc. And that should return the lists of all placements, so i can call them conditionally.<br>If they have such feature to call the req function by themself, it would be good.
<br><br>So please suggest me some better thing. <br><br><br><div class="gmail_quote">On Nov 29, 2007 7:56 PM, Yoram Hekma <<a href="mailto:yoram.hekma@aoes.com">yoram.hekma@aoes.com</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div></div><div class="Wj3C7c">On Thu, Nov 29, 2007 at 06:48:10PM +0530, Ravi Kumar wrote:<br>> Hi,<br>> I am stuck a little. I am working on a demo site to propose for the my<br>> company. Using mod_python and several python technologies. But the website
<br>> is simply using publisher handler, i dont want to use any framework such as<br>> DJango etc.<br>><br>> so the main idea is, i made many python files which has several defs inside,<br>> such as index, getList, submitForm etc
<br>> now everything is working nice, means calling them in url. I need a<br>> templating system now. But not slow and complex. The only things in<br>> templating system i need is:<br>><br>> fetching all the names of variables/placeholder in template. (i can then
<br>> call the suitable defs from files and apply the wrapper on it and return to<br>> main caller)<br>> setting the values<br>><br>> Please suggest some ideas.<br>><br>><br>><br>> --<br>> -=Ravi=-
<br><br></div></div>> --<br>> <a href="http://mail.python.org/mailman/listinfo/python-list" target="_blank">http://mail.python.org/mailman/listinfo/python-list</a><br><br>Well, I personally like Genshi (<a href="http://genshi.edgewall.org/" target="_blank">
http://genshi.edgewall.org/</a>), but<br>offcourse there are others (myghty, cheetah) and I know you can use the<br>Django templating system apart from the framework (never did this<br>though.<br><br>But personally, when I only need a templating system and nothing more
<br>(for some html-reports for instance) I tend to use genshi.<br><font color="#888888"><br>Yoram<br></font><br>-----BEGIN PGP SIGNATURE-----<br>Version: GnuPG v1.4.6 (GNU/Linux)<br><br>iD8DBQFHTswm6Y3ORTnySxURAvh3AKCtfxKGpHibuvxbw0p+DUZqZJ1LqQCfUDIz
<br>/c3cHk8FHqaja2vHCuRoPRY=<br>=9cSn<br>-----END PGP SIGNATURE-----<br><br>--<br><a href="http://mail.python.org/mailman/listinfo/python-list" target="_blank">http://mail.python.org/mailman/listinfo/python-list</a><br></blockquote>
</div><br><br clear="all"><br>-- <br>-=Ravi=-