简单的HTML模板引擎? [英] Simple HTML template engine?
问题描述
您好,
任何人都可以推荐一个简单的python模板引擎,用于生成仅依赖于Pyhon Core模块的HTML b $ b HTML吗?
不需要缓存,模板编译等。
速度不是主要问题。
我只是需要循环和条件。模板继承将是一个
奖金。
我见过Genshi和Cheetah,但它们似乎太复杂了。
>
任何想法?
我确定自己可以自己制作一些东西,但我相信这已经完成了
好几次。为什么要重新发明轮子呢?
谢谢你,
Allen
Hello,
Can anyone recommend a simple python template engine for generating
HTML that relies only on the Pyhon Core modules?
No need for caching, template compilation, etc.
Speed is not a major issue.
I just need looping and conditionals. Template inheritance would be a
bonus.
I''ve seen Genshi and Cheetah, but they seem way too complex.
Any ideas?
I''m sure I could build something myself, but I''m sure this has already
been done quite a few times. Why re-invent the wheel, right?
Thank you,
Allen
推荐答案
allen.fowler写道:
allen.fowler wrote:
你好,
任何人都可以推荐一个简单的python模板引擎来生成
仅依赖于Pyhon Core模块的HTML?
无需缓存,模板编译等。
速度不是主要问题。
我只需要循环和条件。模板继承将是一个
奖金。
Hello,
Can anyone recommend a simple python template engine for generating
HTML that relies only on the Pyhon Core modules?
No need for caching, template compilation, etc.
Speed is not a major issue.
I just need looping and conditionals. Template inheritance would be a
bonus.
HTMLTemplate对于那种事情是一个最小的系统。
它不会拖入一些大的框架。
John Nagle
HTMLTemplate is a minimal system for that sort of thing.
It doesn''t drag in some big "framework".
John Nagle
" allen.fowler" < al ********** @ yahoo.comwrote in
news:11 ********************* *@e9g2000prf.googlegro ups.com:
"allen.fowler" <al**********@yahoo.comwrote in
news:11**********************@e9g2000prf.googlegro ups.com:
您好,
任何人都可以为
生成仅依赖Pyhon Core模块的HTML?
无需缓存,模板编译等。
速度不是主要问题。
我只需要循环和条件。模板继承
将是奖金。
我见过Genshi和Cheetah,但它们看起来太复杂了。
>
任何想法?
Hello,
Can anyone recommend a simple python template engine for
generating HTML that relies only on the Pyhon Core modules?
No need for caching, template compilation, etc.
Speed is not a major issue.
I just need looping and conditionals. Template inheritance
would be a bonus.
I''ve seen Genshi and Cheetah, but they seem way too complex.
Any ideas?
你试过猎豹吗?我刚刚开始使用它来做一个简单的工作,
只是循环和条件,对我来说似乎很简单。
Adrian
Did you try Cheetah? I''ve just started using it for a simple job,
just looping and conditionals and it seemed quite simple to me.
Adrian
你试过CherryPy吗? http://www.cherrypy.org/
它不是一个模板引擎,而是一个简单的Web服务器引擎,并且你可以直接用Python编写你的条件和循环代码......当
我试过了,它看起来很简单。
Ciprian。
2007年10月15日,allen.fowler< al *** *******@yahoo.comwrote:
Have you tried CherryPy? http://www.cherrypy.org/
It''s not a template engine, but a simple web server engine, and
you could code your conditionals and loops directly in Python... When
I have tried it, it looked very nice and easy.
Ciprian.
On 10/15/07, allen.fowler <al**********@yahoo.comwrote:
你好,
任何人都可以推荐一个简单的python模板引擎用于生成
HTML仅依赖于Pyhon Core模块?
无需缓存,模板编译等。
速度不是主要问题。
我只需要循环和条件。模板继承将是一个
奖金。
我见过Genshi和Cheetah,但它们似乎太复杂了。
>
任何想法?
我确定自己可以自己制作一些东西,但我相信这已经完成了
好几次。为什么要重新发明轮子呢?
谢谢,
Allen
Hello,
Can anyone recommend a simple python template engine for generating
HTML that relies only on the Pyhon Core modules?
No need for caching, template compilation, etc.
Speed is not a major issue.
I just need looping and conditionals. Template inheritance would be a
bonus.
I''ve seen Genshi and Cheetah, but they seem way too complex.
Any ideas?
I''m sure I could build something myself, but I''m sure this has already
been done quite a few times. Why re-invent the wheel, right?
Thank you,
Allen
这篇关于简单的HTML模板引擎?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!