CSS LESS

Less 能让你更方便的写css,就像写程序一样,可以继承,可以设置变量。
请看这篇文章介绍如何在symfony2下安装less

http://www.yves-astier.com/2012/09/20/symfony-2-comment-integrer-less/

and

http://www.symfony-grenoble.fr/80/utiliser-less-avec-assetics-de-symfony2/
这是它的官网:
http://lesscss.org/

in syfmony2 , how to combine cssrewrite, yui and less?

here is the answer:

 {% stylesheets debug=false filter='lessphp,?cssrewrite,?yui_css' output='css/moderation.css'
 "bundles/acmemoderation/css/*.less"
 %}

评论

  1. There is another article talk about this which concern about passing parameters to the compiler.

    回复删除
  2. http://isometriks.com/using-less-with-symfony2

    回复删除

发表评论

热门帖子