On Monday 08 October 2007 19:35, Yuan HOng wrote: > How do I dynamically generate javascript and css files and how to register > them? > > ZPT doesn't seem to be a viable solution for generating these. DTML as > far as I know is no longer available. So I think I should write a > browser view to generate it in python with string formatting. > > Then how do I registered them? Using browser:page directive just like > for a normal HTML page? > But that would send text/html as the content type I guess, not > text/javascript. > > What's the zope3's way of dynamicall script and css generation?
Have a look at z3c.zrtresource. It was created for exactly this use case. Regards, Stephan -- Stephan Richter CBU Physics & Chemistry (B.S.) / Tufts Physics (Ph.D. student) Web2k - Web Software Design, Development and Training _______________________________________________ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users