Plugin Directory

WP-LESS

Implementation of LESS (Leaner CSS) in order to make themes development easier.

Version 1.4.2

  • feature: if WP_DEBUG is set to true, compilation is done on every page
  • feature: rebuild now takes care of LESS PHP variable
  • feature: added support of custom LESS functions
  • lessphp: updated to version 0.3.1

Version 1.4.1

  • bug: CSS url() are now properly resolved relative to the theme URL

Version 1.4

  • action: wp-less_compiler_parse_pre now takes 3 arguments: class instance, text and variable arguments
  • action: wp-less_stylesheet_save_pre now takes 2 arguments: class instance and variable arguments
  • helper: added less_add_variable to ease manipulations from theme, if needed (the file needs to be included manually)
  • stylesheet: getBuffer() and setBuffer will be removed in 1.5 version
  • lessphp: removed the custom patch for buffer manipulation, due to built-in variable management
  • lessphp: updated to version 0.3.0

Version 1.3.1

  • renamed wp-less_compiler_parse action to wp-less_compiler_parse_pre to avoid name conflicts
  • renamed wp-less_compiler_construct action to wp-less_compiler_construct_pre to avoid name conflicts
  • lessphp: patched the lib to let manipulating the buffer, and replace strings (do it at your own risks)

Version 1.3

  • moved stylesheet processing from wp_print_styles to wp action
  • added new compiler actions and filters (same name each): wp-less_compiler_construct and wp-less_compiler_parse
  • added WPLessCompiler::getBuffer() and WPLessCompiler::setBuffer() method, to enables hooking on LESS content, before being compiled into CSS
  • removed WPLessStyleseet::getTargetContent method
  • upgraded plugin-toolkit
  • usage of $WPLessPlugin->dispatch instead of $WPLessPlugin->registerHooks to match the new plugin-toolkit signature
  • no more configuration collision if usage of multiple plugins using plugin-toolkit
  • lessphp: updated to eac64a9d5a3bc3186a11c7130968388819f4c403 commit

Version 1.2.1

  • fixed the case where no stylesheet is queued (no warning anymore)

Version 1.2

  • added 2 new filters working on freshly transformed CSS
  • added a HTML helper to LESSify directly from templates, without queuying with wp_enqueue_stylesheet (can't really recommend this usage)
  • added timestamp calculation so as you can be HTTP cache-control compliant
  • documented plugin hooks and filters
  • hooked a filter to update relative paths to deal uri and cached file location
  • lessphp: updated to version 0.2.0

Version 1.1

  • added bootstrap-for-theme.php to let themers bundle the plugin in their own themes
  • added WPLessPlugin::registerHooks methods to ease hooks activation
  • theme bootstrap will only load if the plugin is not alread activated
  • WPLessPlugin::processStylesheets() and WPLessPlugin::processStylesheet() now accepts an additional parameter to force the rebuild
  • lessphp: updated to version 0.1.6
  • plugin-toolkit: updated to version 1.1

Version 1.0

  • implemented API to let you control the plugin the way you want
  • just in time compilation with static file caching
  • lessphp: bundled to version 0.1.6
  • plugin-toolkit: bundled experimental plugin development

Requires: 2.8 or higher
Compatible up to: 3.3.2
Last Updated: 2012-1-10
Downloads: 3,485

Average Rating

4 stars
(10 ratings)

Support

0 of 2 support threads in the last three weeks have been resolved.

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
1 person says it's broken.

100,1,1
100,1,1
100,1,1
100,2,2
100,1,1 100,1,1 100,2,2
100,1,1
100,2,2 100,1,1
100,1,1
0,1,0
50,2,1
0,1,0
86,7,6
0,1,0