\LessPhp
Handles compliation of less files within the silverstripe theme directory
- Author: Olivier Penhoat
Synopsis
class LessPhp
{
- // members
- public static boolean $include_subthemes = true;
- public static string $extension_mask = "/\.less(\.css)?$/i";
- // methods
- protected array findThemes()
- protected void compileThemePath()
- public void CompileThemedCssFiles()
Members
public
- $extension_mask
—
string
Search regular expression for the file extension for less files. By default support for less files with either the .less.css or .less extensions. The matched extension will be replaced with .css in the newly compiled file - $include_subthemes
—
boolean
Flag indicating whether this module should also parse subthemes included under the current theme
Methods
protected
- compileThemePath() — Performs compilation of a specified theme path
- findThemes() — Determines the theme names that should be considered
public
- CompileThemedCssFiles() — Performs compliation