[Tutor] Why not to use include?
Hansen, Mike
Mike.Hansen at atmel.com
Mon Jun 9 17:09:52 CEST 2008
> -----Original Message-----
> From: tutor-bounces at python.org
> [mailto:tutor-bounces at python.org] On Behalf Of Michael Langford
> Sent: Sunday, June 08, 2008 2:39 PM
> To: Dotan Cohen
> Cc: tutor at python.org
> Subject: Re: [Tutor] Why not to use include?
>
> Python makes web pages just fine. There are both embedded technologies
> (such as the python server pages Kent mentioned above) and template
> engines based on callbacks (such as django's templates, djangos the
> whole way, etc).
>
> Its extremely easy to make your own templating engine if you don't
> like python server pages yet you like templating. (Using mod_python or
> mod_wsgi[recommended] and the substitute function).
>
Other than a learning exercise or having a different idea about
templating, I'd go with an existing template solution like Cheetah,
Mako, Kid, Genshi.
Mike
More information about the Tutor
mailing list