Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Andrew Emelianenko
authored and
Andrew Emelianenko
committed
Apr 28, 2012
1 parent
834ae65
commit bced6dd
Showing
1 changed file
with
13 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
How to use? | ||
----------- | ||
|
||
* Set up a config file with you directories. | ||
* Place in `less_dir` your .less file (ex. style.less) | ||
* Call the function `Less::compile('style');` in your code. This function was return the address of the file. | ||
|
||
Example of using: | ||
~~~ | ||
<style src="<?php Less::compile('style') ?>"> | ||
~~~ | ||
|
||
*Note: if in the config `only_development` is true, .less file was compiled every time when function call. Else .less file was compiled, if file does not exist.* |