Lines Matching refs:template
3 A simple template engine separates logic from the presentation and provides
10 $template = new App\Template\Engine(__DIR__.'/../path/to/templates');
17 $template->assign([
26 echo $template->render('pages/how_to_report.php', [
70 To include a partial template snippet file:
77 except that the variable scope is not inherited by the template that included
78 the file. To import variables into the included template snippet file:
86 Blocks are main building elements that contain template snippets and can be
164 Registering additional template helpers can be useful when a custom function or
165 class method needs to be called in the template.
170 $template->register('formatDate', function (int $timestamp): string {
178 $template->register('doSomething', [$object, 'methodName']);