neilime / zf2-assets-bundle

AssetsBundle is a module for Zend Framework 2 allowing asset managment (bundling & caching)
https://neilime.github.io/zf2-assets-bundle/
MIT License
33 stars 20 forks source link

conditional param #13

Open Repkit opened 10 years ago

Repkit commented 10 years ago

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]

Repkit commented 10 years ago

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()

neilime commented 10 years ago

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