taglibs equivalent in Python

Duncan Booth duncan at NOSPAMrcp.co.uk
Wed May 8 05:30:03 EDT 2002


"Ragu Bharadwaj" <ragu at stromix.com> wrote in
news:mailman.1020811585.15566.python-list at python.org: 

> Is it possible to implement custom tags within Zope? (to implement
> taglibs like functionality) 
> 
The answer is yes, it is quite easy to add custom tags to Zope DTML. 
Whether it is advisable is another matter entirely. See 
http://www.zope.org/Members/z113/1 for instructions.

Most new Zope development these days uses presentation templates to 
generate HTML/XML instead of the older DTML (although DTML still has uses 
for other document types). Zope presentation templates do almost everything 
with attributes instead of tags, so adding new tags is probably not easy in 
the ZPT world.

-- 
Duncan Booth                                             duncan at rcp.co.uk
int month(char *p){return(124864/((p[0]+p[1]-p[2]&0x1f)+1)%12)["\5\x8\3"
"\6\7\xb\1\x9\xa\2\0\4"];} // Who said my code was obscure?



More information about the Python-list mailing list