|
@@ -154,11 +154,11 @@ class TemplateLayout implements View_Interface |
|
@@ -154,11 +154,11 @@ class TemplateLayout implements View_Interface |
154
|
else {
|
154
|
else {
|
155
|
$template = file_get_contents($viewName, false, null);
|
155
|
$template = file_get_contents($viewName, false, null);
|
156
|
$phpStr = LightnCandy::compile($template, array(
|
156
|
$phpStr = LightnCandy::compile($template, array(
|
157
|
- // DEBUG: LightnCandy::FLAG_RENDER_DEBUG | LightnCandy::FLAG_ERROR_EXCEPTION
|
|
|
158
|
- 'flags' => LightnCandy::FLAG_RENDER_DEBUG | LightnCandy::FLAG_ERROR_EXCEPTION | LightnCandy::FLAG_MUSTACHE | LightnCandy::FLAG_HANDLEBARS, // 使用MUSTACHE和HANDLEBARS的模板格式
|
|
|
159
|
- 'basedir' => array($config->template->partials), // 模板里使用 {{> partial_name}} 时查找的目录
|
|
|
160
|
- 'fileext' => array($tplExt), // 允许查找文件的后缀
|
|
|
161
|
- 'lcrun' => 'Plugin\LCRun3', // 指定编译模板的runtime
|
157
|
+ // DEBUG: LightnCandy::FLAG_RENDER_DEBUG | LightnCandy::FLAG_ERROR_EXCEPTION
|
|
|
158
|
+ 'flags' => LightnCandy::FLAG_ERROR_EXCEPTION | LightnCandy::FLAG_MUSTACHE | LightnCandy::FLAG_HANDLEBARS, // 使用MUSTACHE和HANDLEBARS的模板格式
|
|
|
159
|
+ 'basedir' => array($config->template->partials), // 模板里使用 {{> partial_name}} 时查找的目录
|
|
|
160
|
+ 'fileext' => array($tplExt), // 允许查找文件的后缀
|
|
|
161
|
+ 'lcrun' => 'Plugin\LCRun3', // 指定编译模板的runtime
|
162
|
));
|
162
|
));
|
163
|
// 文件流方式读取PHP方法
|
163
|
// 文件流方式读取PHP方法
|
164
|
$renderer = LightnCandy::prepare($phpStr);
|
164
|
$renderer = LightnCandy::prepare($phpStr);
|