Reputation: 1
I was wondering what I can do with an imported .php, .xml, etc. file in less? How can I use them? Is there any documentation? I have only found an explanation of the existence but not exactly how it can be used/works.
Upvotes: 0
Views: 48
Reputation: 5444
From the documentation:
@import statements may be treated differently by Less depending on the file extension:
If the file has a .css extension it will be treated as CSS and the @import statement left as-is (see the inline option below). If it has any other extension it will be treated as Less and imported. If it does not have an extension, .less will be appended and it will be included as a imported Less file.
Upvotes: 2