templating system

Ksenia Marasanova ksenia.marasanova at gmail.com
Mon Apr 11 03:21:12 EDT 2005


> In EmPy, your template would look something like this::
> 
>         <ul>
>         @[for record in records]@
>                 <li><a href="@record.id">@record.title</a></li>
>         @[end for]@
>         </ul>
> 
> Batch expanding the template would look like something as simple as
> (substituting in your example)::
> 
>         ...
>         return em.expand(open(templateFilename).read(), **locals())

Thanks!

I've read "Known issues and caveats" on the website:

"""
EmPy was primarily intended for static processing of documents, 
rather than dynamic use, and hence speed of processing was not  the
primary consideration in its design.
"""

Have you noticed any speed problems with EmPy?

-- 
Ksenia



More information about the Python-list mailing list