neilime/zf2-assets-bundle

conditional param

Repkit opened this issue · 2 comments

Hi,
First of all congrats for the hard work on this wonderful module.
This module is very scalable and very usefull and covers almost all needs. I say almost because at this moment is not possible to add contitional param (for "pain in the ass" IE).
For example if you want to achieve this : [if IE 7]link href="/assets/css/fallback/ie7.css" media="screen" rel="stylesheet" type="text/css" ![endif]

This is not an "unworkaround-able" issue because we can do this:

echo $this->headScript()->prependFile($this->basePath() . '/assets/js/fallback/es5-shim.min.js','text/javascript', array ('conditional' => 'lt IE 9',)) instead of just echo $this->headScript()

I can create the same behavior than JS Custom but for css. Is that solution OK for your needs ?