PHP 클래스 Essence\Utility\Template

파일 보기 프로젝트 열기: benjamminf/craft-embedded-assets 1 사용 예제들

공개 메소드들

메소드 설명
compile ( string $template, array $variables, callable $filter = null ) : string Compiles a template with variables.

보호된 메소드들

메소드 설명
_compileFunction ( array $variables, callable | null $filter ) : Closure Returns a function used to replace variables by values.

메소드 상세

_compileFunction() 보호된 정적인 메소드

Returns a function used to replace variables by values.
또한 보기: compile()
protected static _compileFunction ( array $variables, callable | null $filter ) : Closure
$variables array Variables.
$filter callable | null Filter function.
리턴 Closure Function.

compile() 공개 정적인 메소드

Compiles a template with variables.
public static compile ( string $template, array $variables, callable $filter = null ) : string
$template string Template.
$variables array Variables.
$filter callable Filter function.
리턴 string Compiled template.