[Zope-dev] Directory resource factories

Malthe Borch mborch at gmail.com
Sat Feb 23 22:53:30 EST 2008


The z3c.pt-package now provides a template class for plain text files 
like .css and .js---using the ${<python expression>}-syntax.

I'd like to integrate it with browser resources such that

   filename.css.<some extension for z3c.pt text templates>

would be sent through the template engine.

Now, the DirectoryResource-class defined in 
zope.app.publisher.browser.directoryresource provides a dictionary of 
resource factories for a number of standard file extensions.

Shouldn't this be pluggable using the component architecture? It would 
adapt to IResourceFactory.

\malthe



More information about the Zope-Dev mailing list