\Requirement_less
Defines a object that takes a path to a raw LESS file and compiles it down into CSS or inclusion in the {@link Requirements} chain
- Author: Uncle Cheese <unclecheese@leftandmain.com>
Synopsis
class Requirement_less
extends MetaLanguage
{
- // members
- public static $compiled_path;
- // Inherited members from MetaLanguage
- protected $uncompiledFile;
- // methods
- public string getCompiledPath()
- public string getBaseRequirement()
- public void compile()
- // Inherited methods from MetaLanguage
- public void __construct()
- public Config config()
Hierarchy
Extends
Members
protected
- $uncompiledFile — string
public
- $compiled_path — string
Methods
public
- compile() — Compiles the $uncompiledFile into CSS
- getBaseRequirement() — Defines that the Requirements::css() method should be called for meta-languages of this type.
- getCompiledPath() — Returns the path for the compiled CSS file. Falls back on the theme_dir/css if {@link self::$compiled_path} is undefined.
Inherited from MetaLanguage
public
- config() — A shortcut to getting the config, since this class is not a descendant of {@link Object}