Method |
Description |
|
__construct ( array $options = null, Compiler $compiler = null, Parser $parser = null, Lexer $lexer = null ) |
Creates a new Tale Jade Renderer instance to render Jade files. |
|
addFilter ( string $name, callable $callback ) |
Adds a new filter to the compiler. |
|
addPath ( string $path ) |
Adds a path to the compiler to search files in. |
|
compile ( string $input, string | null $path = null ) : mixed | string |
Compiles a Jade-string to PHTML. |
|
compileFile ( string $path ) : mixed | string |
Compiles a file to PHTML. |
|
getAdapter ( ) : AdapterBase |
Returns the adapter that actually renders the files. |
|
getCompiler ( ) : Compiler |
Return the compiler instance used in this renderer instance. |
|
getLexer ( ) : Lexer |
Returns the lexer used in this renderer instance. |
|
getParser ( ) : Parser |
Returns the parser instance used in this renderer instance. |
|
render ( string $file, array $args = null ) : string |
Renders a jade-file to a markup-string directly. |
|