2017 © Pedro Peláez
 

fuel-package fuel-less

forked from kriansa/fuel-less for capable of installing by composer

image

uzura8/fuel-less

forked from kriansa/fuel-less for capable of installing by composer

  • Sunday, March 22, 2015
  • by uzura8
  • Repository
  • 1 Watchers
  • 0 Stars
  • 86 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 7 Forks
  • 0 Open issues
  • 1 Versions
  • 5 % Grown

The README.md

Fuel LessCSS Compiler

This is a LESS compiler package for Fuel Framework, using lessphp by @leafo or nodejs., (*1)

LESS extends CSS with dynamic behavior such as variables, mixins, operations and functions., (*2)

More about lesscss: http://lesscss.org/, (*3)

More about lessphp: http://leafo.net/lessphp, (*4)

New in 2.0

  • Search modifications recursively in your less includes
  • Compile your less with LessPHP implementation or the nodejs+node official one

Installing

Clone from Github. Put it on 'packages_dir/less' dir in and add to your app/config/config.php., (*5)

git clone --recursive git://github.com/kriansa/fuel-less.git

Works with Fuel 1.1+, (*6)

Usage

// will compile `less_source_dir`/style.less to base_url/assets/css/style.css and load it as CSS
Asset::less('style.less');

// same syntax as Asset::css()
Asset::less(array('style.less', 'file1.less', 'admin/style.less'));

Config

Copy PKGPATH/less/config/less.php to your APP/config/less.php and change it as you need. You can also change these configs at runtime:, (*7)

// Using the basic Config for the default Asset instance
Config::set('asset.less_source_dir', APPPATH.'less/admin');
// Or using the new Asset Instance
Asset::forge('custom', array('less_source_dir' => APPPATH.'less/admin'));

Updating submodules

In case you want to update the submodules (lessphp and lessjs), (*8)

git pull --recurse-submodules

License

Fuel LessCSS package is released under the MIT License., (*9)

Have fun!, (*10)

The Versions

22/03 2015

dev-2.0/master

dev-2.0/master

forked from kriansa/fuel-less for capable of installing by composer

  Sources   Download

MIT

The Requires

 

by Shingo Yamada