How to exclude files from assetic, if i use * selector?

New topics about Symfony 2 should go here

Moderators: dcobalt, tiagojsag

How to exclude files from assetic, if i use * selector?

Postby lavrikanec » Thu Jan 19, 2012 11:45 am

{% stylesheets output = "style.css"
'../app/Resources/blocks/*/*.css'
'../app/Resources/blocks/*/*/*.css'
%}

My repo looks like that:
blocks
header
header.css
header_ie.css
header.html
footer
footer.css
footer_ie.css
footer.html

And there is a huge amount of blocks (about 50), so i dont want to manually attach each .css

The point is that i dont want to *_ie.css files to be included in the general styles, but i don't know how to write a condition

'../app/Resources/views/blocks/*/*[^i][^e].css' doesnt work,
'../app/Resources/views/blocks/*/*(?!ie).css' too

Frankly, im not even sure assetic supports regexps

Please help
lavrikanec
Junior Member
 
Posts: 1
Joined: Thu Jan 19, 2012 11:38 am

Re: How to exclude files from assetic, if i use * selector?

Postby madmax » Wed Apr 11, 2012 7:10 am

Hi lavrikanec, I'm at the same place you were at Jan 19.
Have you found the answer?
Waiting for your response, I'll keep searching...
Thanks in advance.
madmax
Junior Member
 
Posts: 9
Joined: Tue Mar 06, 2012 12:26 am
Location: Argentina


Return to General Symfony 2 discussion

Who is online

Users browsing this forum: No registered users and 15 guests