PHP Class Compiler, HamlPHP

Afficher le fichier Open project: hamlphp/hamlphp Class Usage Examples

Méthodes publiques

Méthode Description
__construct ( HamlPHP $hamlphp )
getLine ( $index )
getLines ( )
getNextLine ( )
parseFile ( string $fileName ) Compiles haml from a file.
parseLines ( array $rawLines = [] ) Compiles haml from an array of lines.
parseString ( string $rawString ) Compiles haml from a string.
setHamlPhp ( HamlPHP $hamlphp )

Private Methods

Méthode Description
getIndentLevel ( string $line ) : integer Returns the indent level of a line.
removeEmptyLines ( array $rawLines ) @todo We CANNOT remove empty lines inside some filters (eg the planned markdown filter), actually, i think we shouldn't do this at all

Method Details

__construct() public méthode

public __construct ( HamlPHP $hamlphp )
$hamlphp HamlPHP

getLine() public méthode

public getLine ( $index )

getLines() public méthode

public getLines ( )

getNextLine() public méthode

public getNextLine ( )

parseFile() public méthode

Compiles haml from a file.
public parseFile ( string $fileName )
$fileName string

parseLines() public méthode

Compiles haml from an array of lines.
public parseLines ( array $rawLines = [] )
$rawLines array

parseString() public méthode

Compiles haml from a string.
public parseString ( string $rawString )
$rawString string

setHamlPhp() public méthode

public setHamlPhp ( HamlPHP $hamlphp )
$hamlphp HamlPHP