metaskills / less-rails

:-1: :train: Less.js For Rails

Home Page:http://github.com/metaskills/less-rails

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can someone explain import and depend_on

chaomao opened this issue · comments

Hi, there
I read readme a lot of times and still confuse about it, can someone explain it in detail, especially about depend_on? Sorry for my poor english.

Any @import to a .less file will automatically declare that file as a sprockets dependency to the file importing it. This means that you can edit imported framework files and see changes reflected in the parent during development. So this:

@import "frameworks/bootstrap/mixins";

#leftnav { .border-radius(5px); }
Will end up acting as if you had done this below:

/*
 *= depend_on "frameworks/bootstrap/mixins.less"
*/

@import "frameworks/bootstrap/mixins";

#leftnav { .border-radius(5px); }

What's more, I found some issue are talking this again and again, could someone update readme and end this discuss.
@metaskills, please update readme carefully and clearly, I think it may save a lots of time to explain everyone.