symfony 2.1 - compile LESS with custom parameters using Assetic -
i want compile less file parameters fetched database.
so this:
$color = "#433332";
and in .less
@basecolor: $color;
of course of study pseudocode, give thought want do.
i using assetic, symfony 2.1.8-dev , leafo/lessphp bundle.
i have no thought how accomplish this. possible?
you perchance define parameter @ runtime based on db value , pass assetic configuration , through less global var (or similar), configuration parsed pretty on , bit mental. wouldn't rule out possible though, i'm pretty sure i've seen hack accomplish using regular sass compiler.
the next pr on github may of relevance:
https://github.com/kriswallsmith/assetic/pull/177
less symfony-2.1 assetic lessphp
No comments:
Post a Comment