I think I look everywhere, but no success. I am learning Symfony2 so it is possible that I overlooked something.
Here is how I load my css (it works fine):
{% stylesheets filter='cssrewrite'
'@MyHomeBundle/Resources/public/css/*.css'
'@MyAuthBundle/Resources/public/css/*.css'
'@MyUserBundle/Resources/public/css/*.css'
<link rel="stylesheet" media="screen" type="text/css" href="{{ asset_url }}" />
{% endstylesheets %}
The question is how do I distinguish media: handheld, print, screen?
Found that on old Symfony versions, there was file view.yml in which it was possible to mark that "mobile.css" will be loaded only for small devices etc. By then I found discussion http://www.mail-archive.com/symfony-devs@googlegroups.com/msg07718.html that new approach in Symfony2 is much greater and removing this view.yml was good step. Nevertheless it left me with no solution to my problem.
So the question is: how do I specify media="handheld" for lets say mobile.css or media="print" for printable version, to be picked up from my bundles?
I am guessing that this may be some condition, testing name in twig, and depending on name, for example home_mobile.css or home_print.css will load media="handheld" or media="print" accordingly, and by default media="screen" - but if this is correct direction and how to achieve it?
Thanks for your help