Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > most loved template engine on python is?

Reply
Thread Tools

most loved template engine on python is?

 
 
Tamer Higazi
Guest
Posts: n/a
 
      02-24-2008
Hi people!
After deciding choosing python as my future killer application language
for writing web applications, I need from you guys still some support,
if you apologize.

Question:
Which is the most loved template engine for python?


I see, that I can do more aspect oriented programming with python as
with ruby (as comparing those languages). God thanks, I do not have to
create an object for every small thing in python and still generate
classes and access methods statically.


Tamer

 
Reply With Quote
 
 
 
 
Daniel Fetchinson
Guest
Posts: n/a
 
      02-24-2008
> After deciding choosing python as my future killer application language
> for writing web applications, I need from you guys still some support,
> if you apologize.
>
> Question:
> Which is the most loved template engine for python?


AFAIK, there is no single blessed template system. If you're up to web
development then your choice of framework will limit the choices for
template engines. For example if you choose Django I guess you'll have
to stick with its built-in template system (I might be wrong on this)
while if you choose turbogears you can choose between, genshi, kid,
myghty and some others.

If you don't have your own preferences the best bet is choosing the
default template system that comes with your choice of web framework.
With turbogears 1 it means kid, with turbogears 2 it means genshi.

For more info please see http://wiki.python.org/moin/Templating


> I see, that I can do more aspect oriented programming with python as
> with ruby (as comparing those languages). God thanks, I do not have to
> create an object for every small thing in python and still generate
> classes and access methods statically.

 
Reply With Quote
 
 
 
 
Tim Chase
Guest
Posts: n/a
 
      02-24-2008
> AFAIK, there is no single blessed template system. If you're up to web
> development then your choice of framework will limit the choices for
> template engines. For example if you choose Django I guess you'll have
> to stick with its built-in template system (I might be wrong on this)


Django's templating system comes built-in when you install
Django, but it's just a module like any other Python module.
Django views all just return strings (or iterables), so you can
easily include your favorite templating engine if the default
doesn't do it for you. Including

> genshi, kid, myghty and some others.


I've even (in a fit of laziness during a mockup) used python's
dictionary string formatting for a fast templating solution.

> For more info please see http://wiki.python.org/moin/Templating


They're are many to choose from, so pick one that works for you,
and it should plug fairly easily into your framework of choice.

-tkc



 
Reply With Quote
 
bruno.desthuilliers@gmail.com
Guest
Posts: n/a
 
      02-24-2008
On 24 fév, 20:01, Tamer Higazi <(E-Mail Removed)> wrote:
> Hi people!

(snip)
> Question:
> Which is the most loved template engine for python?
>

I don't have a single cue on this, but the one that most impresses me
so far is Mako.
 
Reply With Quote
 
subeen
Guest
Posts: n/a
 
      02-25-2008
On Feb 25, 1:01 am, Tamer Higazi <(E-Mail Removed)> wrote:
>
> Question:
> Which is the most loved template engine for python?
>



I am learning MAKO and I think it's good. But can't tell that it's the
best as I didn't try others.

regards,
Subeen.
http://love-python.blogspot.com/
 
Reply With Quote
 
makoto kuwata
Guest
Posts: n/a
 
      02-25-2008
On 2008-02-25 Tamer Higazi <(E-Mail Removed)> wrote:
> Question:
> Which is the most loved template engine for python?
>


I recommend pyTenjin template engine.
http://www.kuwata-lab.com/tenjin/

pyTenjin is not famous nor popular, but it is very fast, full-
featured, and
very easy-to-use.
The above web page shows that pyTenjin is about 3 times faster than
Cheetah,
9 times faster than Django, and 60 times faster than Kid.
It is easy to install pyTenjin because it is only single file.

users-gude:
http://www.kuwata-lab.com/tenjin/pyt...ers-guide.html

examples:
http://www.kuwata-lab.com/tenjin/pytenjin-examples.html

--
regards,
makoto kuwata
 
Reply With Quote
 
Bernard
Guest
Posts: n/a
 
      02-25-2008
I've been using Cheetah Template for a year now and loved every bit of
it.
There's plenty of well written documentation[1] files as well so that
you may learn it quick.

[1]: http://www.cheetahtemplate.org/learn.html

On 24 fév, 14:01, Tamer Higazi <(E-Mail Removed)> wrote:
> Hi people!
> After deciding choosing python as my future killer application language
> for writing web applications, I need from you guys still some support,
> if you apologize.
>
> Question:
> Which is the most loved template engine for python?
>
> I see, that I can do more aspect oriented programming with python as
> with ruby (as comparing those languages). God thanks, I do not have to
> create an object for every small thing in python and still generate
> classes and access methods statically.
>
> Tamer


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Ubuntu users making themselves loved it seems SuperID NZ Computing 4 01-21-2009 07:46 PM
"to all the computers I've loved before" Justin Computer Information 6 08-10-2005 01:36 AM
Ruby is the "Most Loved" programming language Curt Hibbs Ruby 2 04-27-2005 03:47 PM
I feel loved and wanted Network Guru MCSE 8 07-23-2004 04:54 PM
Hulk - I Loved The "Live Animation," Sam Elliott and JC; AL Commentary Sucked solipsistic@earthlink.net DVD Video 3 11-04-2003 08:08 PM



Advertisments