Movatterモバイル変換


[0]ホーム

URL:


LightnCandy option: FLAG_ERROR_LOG

Print error log to stderr when template error.

Sample Codes

Used option: FLAG_ERROR_LOG

Data:
NULL
Template:
{{../foo}}}OK
Result:
Bad token{{../foo}}} ! Do you mean{{../foo}} or{{{../foo}}}?
Source Code
require('./vendor/autoload.php');useLightnCandy\LightnCandy;$template="{{../foo}}}OK";$php=LightnCandy::compile($template,array("flags"=>LightnCandy::FLAG_ERROR_LOG));

Used option: FLAG_ERROR_LOG

Data:
NULL
Template:
{{>not_found}}
Result:
Can not find partial for 'not_found', you should provide partials or partialresolver in options
Source Code
require('./vendor/autoload.php');useLightnCandy\LightnCandy;$template="{{> not_found}}";$php=LightnCandy::compile($template,array("flags"=>LightnCandy::FLAG_ERROR_LOG));

Search the cookbook

Generated at 2022-03-21T13:13:56.019Z

[8]ページ先頭

©2009-2025 Movatter.jp