\Requirement_coffeescript
Defines a object that takes a path to a raw CoffeeScript file and compiles it down into JavaScript or inclusion in the {@link Requirements} chain
- Author: Uncle Cheese <unclecheese@leftandmain.com>
Synopsis
class Requirement_coffeescript
extends MetaLanguage
{
- // members
- public static $compiled_path;
- public static string $coffee_exec = "coffee";
- // 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
- $coffee_exec — string
- $compiled_path — string
Methods
public
- compile() — Compiles the $uncompiledFile into JS
- getBaseRequirement() — Defines that the Requirements::javascript() method should be called for meta-languages of this type.
- getCompiledPath() — Returns the path for the compiled JS file. Falls back on the project dir 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}