Sometimes we need to add multiple media definitions for stylesheets use as this example:
<link rel="stylesheet" type="text/css" media="screen, projector" href="/css/mystyle.css" />
Currently there is no way to do this via view.yml at the stylesheets definition:
If I try this way:
stylesheets: [ mystyle: { media: screen, projector } ]
Results in this:
Fatal error: Unsupported operand types in /usr/local/symfony-1.0.12/lib/util/Spyc.class.php on line 667
If I try this other way:
stylesheets: [ mystyle: { media: "screen, projector" } ]
Results in this:
<link rel="stylesheet" type="text/css" media="YAMLString" href="/css/mystyle.css" />