PHP 클래스 Compiler, HamlPHP

파일 보기 프로젝트 열기: hamlphp/hamlphp 1 사용 예제들

공개 메소드들

메소드 설명
__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 )

비공개 메소드들

메소드 설명
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

메소드 상세

__construct() 공개 메소드

public __construct ( HamlPHP $hamlphp )
$hamlphp HamlPHP

getLine() 공개 메소드

public getLine ( $index )

getLines() 공개 메소드

public getLines ( )

getNextLine() 공개 메소드

public getNextLine ( )

parseFile() 공개 메소드

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

parseLines() 공개 메소드

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

parseString() 공개 메소드

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

setHamlPhp() 공개 메소드

public setHamlPhp ( HamlPHP $hamlphp )
$hamlphp HamlPHP