Re: [Zope3-Users] dynamicall javascript and css generation
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
Re: [Zope3-Users] dynamicall javascript and css generation
Probably z3c.zrtresource might be of some use? http://svn.zope.org/z3c.zrtresource/trunk/src/z3c/zrtresource/README.txt?rev=69512&view=auto - Shailesh On 10/8/07, Yuan HOng <[EMAIL PROTECTED]> wrote: > > Hi, > > 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? > > -- > Hong Yuan > > 大管家网上建材超市 > 装修装潢建材一站式购物 > http://www.homemaster.cn > > ___ > Zope3-users mailing list > Zope3-users@zope.org > http://mail.zope.org/mailman/listinfo/zope3-users > > ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
[Zope3-Users] dynamicall javascript and css generation
Hi, 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? -- Hong Yuan 大管家网上建材超市 装修装潢建材一站式购物 http://www.homemaster.cn ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users