PHP 클래스 Sonata\Component\Generator\Mustache

저자: Fabien Potencier ([email protected])
파일 보기 프로젝트 열기: sonata-project/ecommerce 1 사용 예제들

공개 메소드들

메소드 설명
renderDir ( string $dir, array $parameters ) Renders a directory recursively.
renderFile ( string $file, array $parameters ) Renders a file by replacing the contents of $file with rendered output.
renderString ( string $string, array $parameters ) : string Renders a single line. Looks for {{ var }}.

메소드 상세

renderDir() 공개 정적인 메소드

Renders a directory recursively.
public static renderDir ( string $dir, array $parameters )
$dir string Path to the directory that will be recursively rendered
$parameters array

renderFile() 공개 정적인 메소드

Renders a file by replacing the contents of $file with rendered output.
public static renderFile ( string $file, array $parameters )
$file string filename for the file to be rendered
$parameters array

renderString() 공개 정적인 메소드

Renders a single line. Looks for {{ var }}.
public static renderString ( string $string, array $parameters ) : string
$string string
$parameters array
리턴 string