PHP 클래스 lithium\template\view\Compiler
It is possible to create your own template compiler and have the chosen
View adapter use that
instead. Please see the documentation on the dynamic dependencies of the adapter in question
to know more about how this can be achieved.
파일 보기
프로젝트 열기: unionofrad/lithium
1 사용 예제들
보호된 프로퍼티들
프로퍼티 |
타입 |
설명 |
|
$_processors |
array |
Key/value pairs of regular expressions. The keys are the regexes, and the values are the
resulting expressions along with any capture groups that may have been used in the
corresponding regexes. |
|
공개 메소드들
메소드 |
설명 |
|
compile ( string $string ) : string |
Preprocess the passed $string (usually a PHP template) for syntax replacements
using sets of regular expressions. |
|
template ( string $file, array $options = [] ) : string |
Compiles a template and writes it to a cache file, which is used for inclusion. |
|
메소드 상세
Preprocess the passed $string (usually a PHP template) for syntax replacements
using sets of regular expressions.
Compiles a template and writes it to a cache file, which is used for inclusion.
public static template ( string $file, array $options = [] ) : string |
$file |
string |
The full path to the template that will be compiled. |
$options |
array |
Options for compilation include:
- `path`: Path where the compiled template should be written.
- `fallback`: Boolean indicating that if the compilation failed for some
reason (e.g. `path` is not writable), that the compiled template
should still be returned and no exception be thrown. |
리턴 |
string |
The compiled template. |
프로퍼티 상세
$_processors 보호되어 있는 정적으로 프로퍼티
Key/value pairs of regular expressions. The keys are the regexes, and the values are the
resulting expressions along with any capture groups that may have been used in the
corresponding regexes.
protected static array $_processors |
리턴 |
array |
|