模板引擎? [英] Templating engine?

查看:58
本文介绍了模板引擎?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我打算开始使用相当大的Web应用程序,很可能使用mod_python来支付
。我最近用它编写了一个相当小的(但是真实的

有用的)Web应用程序,所有这些req.write()用于真正的b
丑陋的代码。模板引擎会解决这个问题吗?有没有人有关于使用哪一个的建议?

I''m planning to start on a fairly large web application, most likely
using mod_python. I recently wrote a fairly small (but real-world
useful) web app with it, and all of those req.write()s made for really
ugly code. Would a templating engine solve that? Does anyone have any
suggestions about which one to use?

推荐答案

Leif K-Brooks:
Leif K-Brooks:
我打算开始使用相当大的Web应用程序,很可能是使用mod_python。我最近用它编写了一个相当小的(但是真实的
有用的)Web应用程序,并且所有这些req.write()都是用于真正丑陋的代码。模板引擎会解决这个问题吗?有没有人对使用哪一个有任何建议?
I''m planning to start on a fairly large web application, most likely
using mod_python. I recently wrote a fairly small (but real-world
useful) web app with it, and all of those req.write()s made for really
ugly code. Would a templating engine solve that? Does anyone have any
suggestions about which one to use?




我用cheetah和mod_python一起工作得很好:
http://www.cheetahtemplate.org/


-
$ b $bRenéPijlman



I''ve used Cheetah with mod_python and it worked fine:
http://www.cheetahtemplate.org/

--
René Pijlman




google skunkweb

非常好,很酷,快速

强大的嵌入式模板引擎

python的全部功能(完全不像Zope)

持久数据库连接只是一个函数调用

踢屁股


在我的机器上带有SQL的小动态页面上200次/秒...

在大页面上,吐出大约4 MB / s的HTML,几乎所有文本在

页面

除了来自数据库的HTML标签...

所有这一切都关闭缓存...


精彩的设计...


随时踢PHP屁股

我甚至做了一些带有一些Javascript& CSS和

服务器端处理

与PIL允许用户调整图像对比度和裁剪图像

鼠标...实时预览

当然还有缩放...

mod_python实在太低了。


周五,2004年6月18日16 :43:46 -0400,Leif K-Brooks< eu ***** @ ecritters.biz>

写道:

google skunkweb
really nice, cool, fast
powerful embedded templating engine
full power of python (not at all like Zope)
persistant database connections are just one function call
kicks ass

200 hits/s on small dynamic pages with SQL in them on my machine...
on large pages, spits out about 4 MBytes/s of HTML, almost all text in
the page
except HTML tags coming from the database...

all this with caching turned off...

brilliant design...

kicks PHP ass anytime

I even did a photoshop-in-a-webpage stuff with some Javascript & CSS and
server-side processing
with PIL to allow the user to adjust image contrast and crop images with
the mouse... realtime preview
with zooming of course...
mod_python is really too low level.

On Fri, 18 Jun 2004 16:43:46 -0400, Leif K-Brooks <eu*****@ecritters.biz>
wrote:
我是计划从一个相当大的Web应用程序开始,很可能使用mod_python。我最近用它编写了一个相当小的(但是真实的
有用的)Web应用程序,并且所有这些req.write()都是用于真正丑陋的代码。模板引擎会解决这个问题吗?有没有人对使用哪一个有任何建议?
I''m planning to start on a fairly large web application, most likely
using mod_python. I recently wrote a fairly small (but real-world
useful) web app with it, and all of those req.write()s made for really
ugly code. Would a templating engine solve that? Does anyone have any
suggestions about which one to use?




-

使用Opera的革命性电子邮件客户: http://www.opera.com/m2/


Pierre-FrédéricCaillaud:
Pierre-Frédéric Caillaud:
google skunkweb
非常好,很酷,快速
强大的嵌入式模板引擎
已满蟒蛇的力量(完全不像Zope)
google skunkweb
really nice, cool, fast
powerful embedded templating engine
full power of python (not at all like Zope)




您是否愿意详细说明与Zope的差异?


- -
$ b $bRenéPijlman



Would you care to elaborate on the differences with Zope?

--
René Pijlman


这篇关于模板引擎?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆