PHP 인터페이스 IContentEvaluator, HamlPHP

파일 보기 프로젝트 열기: hamlphp/hamlphp

공개 메소드들

메소드 설명
evaluate ( $content, array $contentVariables = [] ) : string Evaluates a string and returns the evaluation result.
evaluateFile ( string $filePath, array $contentVariables = [] ) : string Evaluates a file and returns the evaluation result.

메소드 상세

evaluate() 공개 메소드

Evaluates a string and returns the evaluation result.
public evaluate ( $content, array $contentVariables = [] ) : string
$content Contains HAML and PHP code.
$contentVariables array an array of variables
리턴 string The evaluation output

evaluateFile() 공개 메소드

Evaluates a file and returns the evaluation result.
public evaluateFile ( string $filePath, array $contentVariables = [] ) : string
$filePath string The path to file to be evaluated
$contentVariables array The variables to pass to the template
리턴 string The evaluation output