1/ I think it's the good way. 2/ As symfony can add a fake .html extension to action, I think you can handle the .css in the same way, even symfony appends automatically it. See the link below for detail: http://www.symfony-project.com/book/trunk/09-Links-and-the-Routing-System#Adding an .html Extension
But I think symfony append the .css extension only if you use the view.yml file. What if you replace in your template the metas by a partial or a component ? Nautile On 24 mai, 10:32, Roel Vanhout <[EMAIL PROTECTED]> wrote: > Hi, > > I'd like to generate my stylesheets dynamically (so that I can use > variables for colors and use the link_to() helper for image tags in > @url's) but I didn't find anything specific about it in the manual. All > that is really needed is to run the stylesheet template through the > template processor once, but that doesn't seem to be possible. So my > fallback idea was to delete the /css directory from my web root, make a > module called 'css' and have actions in there for every stylesheet I > need (at the moment only one, 'style.css'). I think I would have to > include my stylesheet with a link to /css/style and not /css/style.css, > but I could not find a way to suppress the '.css' that is added > automagically by symfony. > > Now my actual questions: > 1) Is this (i.e., treating stylesheets like all other pages, with an > action and a template) the way to have dynamic stylesheets? > 2) How do I stop symfony from adding .css to my stylesheet, or will I > have to use mod_rewrite to re-route /css/style.css to /css/style? > > Thanks. > > cheers, > > roel --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "symfony users" 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/symfony-users?hl=en -~----------~----~----~----~------~----~------~--~---
