Web development with Python 3.1

Bruno Desthuilliers bruno.42.desthuilliers at websiteburo.invalid
Thu Nov 5 07:16:36 EST 2009


rustom a écrit :
> On Nov 5, 2:23 pm, Bruno Desthuilliers <bruno.
> 42.desthuilli... at websiteburo.invalid> wrote:
>> rustom a écrit :
>>
>>> On Oct 30, 6:23 pm, Dotan Cohen <dotanco... at gmail.com> wrote:
>>>> The point is that I want to use only _Python_ features, not
>>>> Django/Mako/whatever features.
>>> Pure python has a builtin templating system -- its called  %
>> Poor man's template... It only do variable substitutions - no branching
>> nor iteration (and let's not talk about macros, inclusions, filters etc).
> 
> I realised that that link
> http://simonwillison.net/2003/Jul/28/simpleTemplates/
> was written in 2003
> 
> Subsequently python has sprouted something explicitly templateish
> http://docs.python.org/library/string.html#template-strings

Still poor man's template. Just don't hope to do any realworld web 
templating with this.



More information about the Python-list mailing list