473,909 Members | 4,721 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Templating engine?

I'm planning to start on a fairly large web application, most likely
using mod_python. I recently wrote a fairly small (but real-world
useful) web app with it, and all of those req.write()s made for really
ugly code. Would a templating engine solve that? Does anyone have any
suggestions about which one to use?
Jul 18 '05 #1
31 2112
Leif K-Brooks:
I'm planning to start on a fairly large web application, most likely
using mod_python. I recently wrote a fairly small (but real-world
useful) web app with it, and all of those req.write()s made for really
ugly code. Would a templating engine solve that? Does anyone have any
suggestions about which one to use?


I've used Cheetah with mod_python and it worked fine:
http://www.cheetahtemplate.org/

--
René Pijlman
Jul 18 '05 #2

google skunkweb
really nice, cool, fast
powerful embedded templating engine
full power of python (not at all like Zope)
persistant database connections are just one function call
kicks ass

200 hits/s on small dynamic pages with SQL in them on my machine...
on large pages, spits out about 4 MBytes/s of HTML, almost all text in
the page
except HTML tags coming from the database...

all this with caching turned off...

brilliant design...

kicks PHP ass anytime

I even did a photoshop-in-a-webpage stuff with some Javascript & CSS and
server-side processing
with PIL to allow the user to adjust image contrast and crop images with
the mouse... realtime preview
with zooming of course...
mod_python is really too low level.

On Fri, 18 Jun 2004 16:43:46 -0400, Leif K-Brooks <eu*****@ecritt ers.biz>
wrote:
I'm planning to start on a fairly large web application, most likely
using mod_python. I recently wrote a fairly small (but real-world
useful) web app with it, and all of those req.write()s made for really
ugly code. Would a templating engine solve that? Does anyone have any
suggestions about which one to use?


--
Using Opera's revolutionary e-mail client: http://www.opera.com/m2/
Jul 18 '05 #3
Pierre-Frédéric Caillaud:
google skunkweb
really nice, cool, fast
powerful embedded templating engine
full power of python (not at all like Zope)


Would you care to elaborate on the differences with Zope?

--
René Pijlman
Jul 18 '05 #4
Rene Pijlman wrote:
I've used Cheetah with mod_python and it worked fine:
http://www.cheetahtemplate.org/


Looks interesting, but the last update was over six months ago. Any idea
what might be going on with it?
Jul 18 '05 #5
Leif K-Brooks wrote:
Rene Pijlman wrote:
I've used Cheetah with mod_python and it worked fine:
http://www.cheetahtemplate.org/

Looks interesting, but the last update was over six months ago. Any idea
what might be going on with it?


Perhaps it is just fine as it is?
Good software doesn't need updates.

--Irmen
Jul 18 '05 #6
In article <2j************ *@uni-berlin.de>,
Leif K-Brooks <eu*****@ecritt ers.biz> wrote:

I'm planning to start on a fairly large web application, most likely
using mod_python. I recently wrote a fairly small (but real-world
useful) web app with it, and all of those req.write()s made for really
ugly code. Would a templating engine solve that? Does anyone have any
suggestions about which one to use?


If you're already doing req.write(), it'll be easy to shift to Quixote.
--
Aahz (aa**@pythoncra ft.com) <*> http://www.pythoncraft.com/

"Typing is cheap. Thinking is expensive." --Roy Smith, c.l.py
Jul 18 '05 #7
Leif K-Brooks:
Rene Pijlman:
I've used Cheetah with mod_python and it worked fine:
http://www.cheetahtemplate.org/


Looks interesting, but the last update was over six months ago. Any idea
what might be going on with it?


The mailing list is still active with people using the software. There's
nothing wrong with it as far as I can tell.

What particular functionality or fix seems to be lacking?

Well, I can think of one: I don't like the explicit compilation model. I'd
prefer some sort of automatic compilation, based on the timestamp of the
source file. So that it can be used more easily, like PHP.

--
René Pijlman
Jul 18 '05 #8
Aahz:
If you're already doing req.write(), it'll be easy to shift to Quixote.


The question is: is this irony or sarcasm? :-)

--
René Pijlman
Jul 18 '05 #9
has
Leif K-Brooks <eu*****@ecritt ers.biz> wrote in message news:<2j******* ******@uni-berlin.de>...
I'm planning to start on a fairly large web application, most likely
using mod_python. I recently wrote a fairly small (but real-world
useful) web app with it, and all of those req.write()s made for really
ugly code. Would a templating engine solve that?
Yep.
Does anyone have any suggestions about which one to use?


Shameless self-plug:) -
http://freespace.virgin.net/hamish.s...ltemplate.html
Jul 18 '05 #10

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

Similar topics

5
2102
by: Roger Jack | last post by:
I have just finished reading Code Generation In Action which uses Ruby for code generation. I would like to use Python instead. Is Cheetah the best tool to use for templating source code files and then generating code? Is there something more mature or better? Thanks! -- Roger Jack Elegance Technologies, Inc.
4
1737
by: Przemyslaw Wegrzyn | last post by:
Hi ! Does anybody know any good, open-source library similar to Perl's Template or Jakarta Velocity ? Best Regards, Przemyslaw
18
4994
by: pkassianidis | last post by:
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
7
1629
by: Paul | last post by:
I have been coding apps with PHP for several years. But I am getting more involved in larger and more complicated PHP applications and want to use best practices. I use Eclipse's PHP IDE. I doubt I am using it to its full extent but I want to learn more about, and compare and contrast, frameworks versus IDE versus templating systems and MOST IMPORTANTLY learn what is going to save me time. I know technically the IDE is the tool in...
5
2335
by: jmDesktop | last post by:
Hi, I was using .net and it uses templates. I like that it did not mix the UI with logic. I saw there are many templating engines for php usage. Can you recommend one? I don' t know which to pursue. I don't need MVC at the moment, but I don't know that the templating engines require it either. Thank you.
10
1736
by: Terrence Brannon | last post by:
Hello, The most common way of dynamically producing HTML is via template engines like genshi, cheetah, makotemplates, etc. These engines are 'inline' --- they intersperse programming constructs with the HTML document itself. An opposite approach to this form of dynamic HTML production is called push-style templating, as coined by Terence Parr:
0
10035
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9877
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
11346
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
11046
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10538
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9725
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6138
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
4336
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3357
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.