Searched refs:template (Results 1 – 15 of 15) sorted by relevance
/web-bugs/tests/Unit/Template/ |
H A D | EngineTest.php | 11 private $template; variable in App\\Tests\\Unit\\Template\\EngineTest 20 $content = $this->template->render('pages/view.php', [ 55 $this->template->register('noHtml', function ($var) { 62 $this->template->assign([ 76 $this->template->assign([ 82 $this->template->assign([ 92 $this->template->assign([ 110 $this->template->assign([ 126 $this->template->assign([ 172 $this->template->assign([ [all …]
|
/web-bugs/src/Template/ |
H A D | Engine.php | 91 public function render(string $template, array $variables = []): string argument 101 $buffer = $this->bufferize($template, $variables); 116 private function bufferize(string $template, array $variables = []): string argument 118 if (!is_file($this->dir.'/'.$template)) { 119 throw new \Exception($template.' is missing or not a valid template.'); 123 function ($template, $variables) { 124 $this->current = $template; 126 unset($variables, $template); 159 return $closure($template, $variables);
|
H A D | Context.php | 144 public function include(string $template, array $variables = []) argument 148 'Variables with numeric names $0, $1... cannot be imported to scope '.$template 152 return include $this->dir.'/'.$template;
|
/web-bugs/www/admin/ |
H A D | index.php | 24 echo $template->render('pages/admin/phpinfo.php', [ 31 echo $template->render('pages/admin/quick_responses.php', [ 38 echo $template->render('pages/admin/database_status.php', [ 48 echo $template->render('pages/admin/mailing_lists.php', [
|
/web-bugs/www/ |
H A D | bugs-generating-backtrace-win32.php | 14 echo $template->render('pages/bugs_generating_backtrace_win32.php');
|
H A D | bugs-generating-backtrace.php | 14 echo $template->render('pages/bugs_generating_backtrace.php');
|
H A D | search-howto.php | 14 echo $template->render('pages/search_how_to.php');
|
H A D | how-to-report.php | 14 echo $template->render('pages/how_to_report.php');
|
H A D | bugs-getting-valgrind-log.php | 14 echo $template->render('pages/bugs_getting_valgrind_log.php');
|
H A D | quick-fix-desc.php | 19 echo $template->render('pages/quick_fix_desc.php', [
|
H A D | index.php | 49 echo $template->render('pages/index.php', [
|
/web-bugs/docs/ |
H A D | templates.md | 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 165 class method needs to be called in the template. 170 $template->register('formatDate', function (int $timestamp): string { [all …]
|
/web-bugs/include/ |
H A D | prepend.php | 87 $template = $container->get(Engine::class); variable 88 $template->assign([
|
H A D | auth.php | 27 $template->assign([
|
/web-bugs/ |
H A D | composer.lock | 277 "phpunit/php-text-template": "^1.2.1", 392 "name": "phpunit/php-text-template", 396 "url": "https://github.com/sebastianbergmann/php-text-template.git", 401 …"url": "https://api.github.com/repos/sebastianbergmann/php-text-template/zipball/31f8b717e51d9a2af… 425 "description": "Simple template engine.", 426 "homepage": "https://github.com/sebastianbergmann/php-text-template/", 428 "template" 431 "issues": "https://github.com/sebastianbergmann/php-text-template/issues", 432 "source": "https://github.com/sebastianbergmann/php-text-template/tree/1.2.1" 583 "phpunit/php-text-template": "^1.2.1",
|
Completed in 15 milliseconds