简单的HTML模板引擎?

编程入门 行业动态 更新时间:2024-10-27 04:25:09
本文介绍了简单的HTML模板引擎?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

您好, 任何人都可以推荐一个简单的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 ********** @ yahoowrote in news:11 ********************* *@e9g2000prf.googlegro ups: "allen.fowler" <al**********@yahoowrote in news:11**********************@e9g2000prf.googlegro ups: 您好, 任何人都可以为 生成仅依赖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吗? www.cherrypy/ 它不是一个模板引擎,而是一个简单的Web服务器引擎,并且你可以直接用Python编写你的条件和循环代码......当 我试过了,它看起来很简单。 Ciprian。 2007年10月15日,allen.fowler< al *** *******@yahoowrote: Have you tried CherryPy? www.cherrypy/ 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**********@yahoowrote: 你好, 任何人都可以推荐一个简单的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模板引擎?

本文发布于:2023-06-01 10:47:28,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/413453.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:模板   简单   引擎   HTML

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!