473,400 Members | 2,163 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,400 software developers and data experts.

Perl Template Toolkit: Now in spicy new Python flavor

I'd like to inform the Python community that the powerful and popular
Template Toolkit system, previously available only in its original
Perl implementation, is now also available in a beta Python
implementation:

http://tt2.org/python/index.html

I created this port both as a fun programming project, and for use in
environments where Perl is not available, for reasons technical,
cultural, or otherwise. The extensive Perl test suites have also been
ported, and most templates require no or very little modification.

Discussion of the Python implementation should be conducted on the
main Template Toolkit developer mailing list; see the site above for
details.
Jan 14 '08 #1
4 2279
Congrats. This will no doubt prove valuable to any Python programmer.
Jan 15 '08 #2
ee****@gmail.com wrote:
I'd like to inform the Python community that the powerful and popular
Template Toolkit system, previously available only in its original
Perl implementation, is now also available in a beta Python
implementation:

http://tt2.org/python/index.html

I created this port both as a fun programming project, and for use in
environments where Perl is not available, for reasons technical,
cultural, or otherwise. The extensive Perl test suites have also been
ported, and most templates require no or very little modification.
I must say...wow. That would have saved me some time and hassle about a
year ago, but of course, I wouldn't have fell in love with pure XML
templates either. :) As someone who has used Template Toolkit quite a bit,
I must say that is is quite cool. Congrats on a job well done!

j

Jan 15 '08 #3
ee****@gmail.com a écrit :
On Jan 15, 1:45 pm, George Sakkis <george.sak...@gmail.comwrote:
>>eef...@gmail.com wrote:
I'd like to inform the Python community that the powerful and popular
Template Toolkit system, previously available only in its original
Perl implementation, is now also available in a beta Python
implementation:
http://tt2.org/python/index.html
I created this port both as a fun programming project, and for use in
environments where Perl is not available, for reasons technical,
cultural, or otherwise. The extensive Perl test suites have also been
ported, and most templates require no or very little modification.
>How does it compare with other "mainstream" Python template engines
such as Cheetah, Mako, etc. ?

I can't claim a comprehensive familiarity with Python template
offerings, but all of the packages approved for use at my previous
workplace left me cold. The most popular were ClearSilver and Django,
and both felt horribly limiting compared to the Template Toolkit,
ClearSilver is not a Python templating system, but a C templating system
with bindings for various languages including Python. Being (by design)
language-agnostic, it's indeed *very* limited (and that's an
understatement).

wrt/ Django templates, it indeed imposes severe limitations on what can
be simply expressed when you are familiar with Python. This is by design
- since it has been designed to be safe to use for non-programmers. Now
while not my cup of tea, it has proven to be fairly usable, quite less
limiting that what I feared at first, and really easy to use for our web
designer/integrator.

Now there are way more flexible/expressive templating systems in Python,
either XML oriented (genshi) or more generic (my favorite one so far
being Mako).

But anyway, I'm not the one that will complain with Perl templating
systems being ported to Python - FWIW, Mako was born from it's author
previous experience with porting Mason to Python !-)
Jan 17 '08 #4
On 16 Jan, 21:01, "eef...@gmail.com" <eef...@gmail.comwrote:
>
I can't claim a comprehensive familiarity with Python template
offerings, but all of the packages approved for use at my previous
workplace left me cold.
There are a few offerings listed on this page:

http://wiki.python.org/moin/Templating

I suppose you could add Template Toolkit somewhere on that page,
indicating where it fits into the bigger picture.

Paul
Jan 17 '08 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Chris | last post by:
Hi I am posting this on both the perl and python groups My intention is not to start a war or anything else, I would just like some pragmatic advice. My apologies to the python group I am...
4
by: Dekaritae | last post by:
I have a script that I've written in Perl that retrieves files generated from a template. It works decently enough, but I'd like to rewrite it in Python (Perl was just a detour; it was originally...
5
by: mbbx6spp | last post by:
Hi All, I already searched this newsgroup and google groups to see if I could find a Python equivalent to Perl's Template::Extract, but didn't find anything leading to a Python module that had...
5
by: Gonçalo Rodrigues | last post by:
Hi all, Sorry to bother you guys again with a template question but I'm really trying to understand them and there's some piece of info that I'm missing. I'm sure I'm being really dumb here so,...
29
by: Mainlander | last post by:
An ISP I belong to uses Majordomo for their mailing list system. I'd like to encourage them to move to a system that uses a database, preferably psql which they already run on their server....
0
by: Kirt Loki Dankmyer | last post by:
So, I download the latest "stable" tar for perl (5.8.7) and try to compile it on the Solaris 8 (SPARC) box that I administrate. I try all sorts of different switches, but I can't get it to compile....
5
by: James Owens | last post by:
I anticipate working with XML and XSL a lot over the next few years (I'm in technical documentation). I also happen to be looking for a new scripting language for some CGI interfaces I'll be...
7
by: Michele Simionato | last post by:
I have noticed that the python-mode for Emacs that comes with the latest Ubuntu is missing the class browser. Moreover if works differently from the python-mode I was used to (for instance CTRL-c-c...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.