Class NLatteFilter
Compile-time filter Latte.
-
NObject
-
NLatteFilter
Methods summary
public
NLatteFilter
|
#
setHandler( ILatteHandler $handler )
Sets a macro handler.
Parameters
Returns
|
public
ILatteHandler
|
#
getHandler( )
Returns macro handler.
Returns
ILatteHandler
|
public
string
|
#
__invoke( string $s )
Invokes filter.
Parameters
Returns
string
|
public
integer
|
#
getLine( )
Returns current line number.
Returns current line number.
Returns
integer
|
public
NLatteFilter
|
#
setDelimiters( string $left, string $right )
Changes macro delimiters.
Changes macro delimiters.
Parameters
- $left
string left regular expression
- $right
string right regular expression
Returns
|
public static
string
|
#
formatModifiers( string $var, string $modifiers )
Applies modifiers.
Parameters
- $var
string
- $modifiers
string
Returns
string
|
public static
string
|
#
fetchToken( string & $s )
Reads single token (optionally delimited by comma) from string.
Reads single token (optionally delimited by comma) from string.
Parameters
Returns
string
|
public static
string
|
#
formatArray( string $s, string $prefix = '' )
Formats parameters to PHP array.
Formats parameters to PHP array.
Parameters
Returns
string
|
public static
string
|
#
formatString( string $s )
Formats parameter to PHP string.
Formats parameter to PHP string.
Parameters
Returns
string
|