Run CSS file through Twig when using {% stylesheets %} tag in Twig with Symfony2
问题 I'm including CSS stylesheets in my template like so: {% stylesheets "@SomeBundle/Resources/assets/css/default.css.twig" "@SomeBundle/Resources/assets/css/global.css.twig" %} <link rel="stylesheet" href="{{ asset_url }}" /> {% endstylesheets %} However I want to run these CSS files through Twig, is this in any way possible while using the {% stylesheets %} tag or does this require some other approach. I've already tried enabling a twig filter but that does not exist. 回答1: You could do it if