HTML生成与PSP对模板引擎 [英] HTML generation vs PSP vs Templating Engines
问题描述
大家好,
我正在用Python编写我的第一个Web应用程序,
我需要一种方法
使用数据库中的数据生成动态HTML页面。我不得不说我过多的b $ b被大量的不同框架,模板引擎,HTML
生成工具等等所淹没了
存在。经过一番思考后我决定将各种框架
放在一边,暂时使用mod / py $。 HTML on
the fly。
可以使用上述所有不同方式的人
动态HTML
内容,请说明不同方法的优缺点是什么?
非常感谢您提前
Panos
pk **** ******@gmail.com 写道:大家好,
我正在用Python编写我的第一个Web应用程序,
我需要一种方法来生成包含数据库数据的动态HTML页面。
(剪辑)经过一番思考后我决定暂时搁置各种框架
,并使用mod_python.publisher
我知道这不是你问题的答案,但你有没有?b $ b尝试过Django?
-
bruno desthuilliers >
python -c" print''@''。join([''。''。join([w [:: - 1] for p in p.split(''。'')] )''o **** @ xiludom.gro'中的
p。分裂(''''')])"
< blockquote> pk**********@gmail.com 写道:
大家好,
我正在用Python编写我的第一个Web应用程序,
我需要一种方法来生成动态HTML页面来自数据库的数据。
(剪辑)经过一番思考后我决定暂时搁置各种框架
,并使用mod_python.publisher
我知道这不是你问题的答案,但你有没有?b $ b尝试过Django?
-
bruno desthuilliers >
python -c" print''@''。join([''。''。join([w [:: - 1] for p in p.split(''。'')] )''o **** @ xiludom.gro'中的
p。分裂(''''')])"
< BLOCKQUOTE>>经过一番思考后,我决定暂时搁置各种框架
,并使用mod_python.publisher以及一些动态生成HTML的方法。
>
我最喜欢KID模板,你可以在任何
HTML制作软件中轻松使用它们,它们很容易使用(很多pythonic)。 br $> b $ b -
damjan
Hello everybody,
I am in the process of writing my very first web application in Python,
and I need a way to
generate dynamic HTML pages with data from a database. I have to say I
am overwhelmed
by the plethora of different frameworks, templating engines, HTML
generation tools etc that
exist. After some thought I decided to leave the various frameworks
aside for the
time being and use mod_python.publisher along with some means of
generating HTML on
the fly.
Could someone that has used all the different ways mentioned above for
dynamic HTML
content, suggest what the pros and cons of the different methods are?
Thank you very much in advance
Panos
pk**********@gmail.com wrote:Hello everybody,
I am in the process of writing my very first web application in Python,
and I need a way to
generate dynamic HTML pages with data from a database. (snip) After some thought I decided to leave the various frameworks
aside for the
time being and use mod_python.publisher
I know this is not exactly an answer to your question, but have you
tried Django ?
--
bruno desthuilliers
python -c "print ''@''.join([''.''.join([w[::-1] for w in p.split(''.'')]) for
p in ''o****@xiludom.gro''.split(''@'')])"
pk**********@gmail.com wrote:Hello everybody,
I am in the process of writing my very first web application in Python,
and I need a way to
generate dynamic HTML pages with data from a database. (snip) After some thought I decided to leave the various frameworks
aside for the
time being and use mod_python.publisher
I know this is not exactly an answer to your question, but have you
tried Django ?
--
bruno desthuilliers
python -c "print ''@''.join([''.''.join([w[::-1] for w in p.split(''.'')]) for
p in ''o****@xiludom.gro''.split(''@'')])"
> After some thought I decided to leave the various frameworksaside for the time being and use mod_python.publisher along with some
means of generating HTML on the fly.
I kind of like KID templates the most, you can easyly work with them in any
HTML authoring software, they are easy to use (prety much pythonic).
--
damjan
这篇关于HTML生成与PSP对模板引擎的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!