Thanks, it did give me a great idea to implement what I need. :) On Mar 2, 3:10 am, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote: > Olli Wang schrieb: > > > Thanks, Diez. I finally get it work. But do I must use .txt to be the > > template's extension name? I think it's a little weird that my content > > is CSS but with .txt extension, also, it makes my highlighting sucks > > in editor though it did work. > > > Here's my testing code: > > @expose(template="genshi-text:proj.templates.css", > > content_type='text/css; charset=utf-8') > > def css(self): > > return dict() > > > The css of "proj.templates.css" is actually css.txt. Hope I can > > use .css as the extension, don't if I miss something? Thanks. > > No idea, that is genshi-dependend which I don't use. You could also just > use a simple expose() without a template engine, open a css-file with > open(name).read() and spit out the contents in the return-statement. No > need to go templating if you don't use it. > > Diez
--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "TurboGears" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/turbogears?hl=en -~----------~----~----~----~------~----~------~--~---

