Home
last modified time | relevance | path

Searched refs:template (Results 1 – 15 of 15) sorted by relevance

/web-bugs/tests/Unit/Template/
H A DEngineTest.php11 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 DEngine.php91 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 DContext.php144 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 Dindex.php24 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 Dbugs-generating-backtrace-win32.php14 echo $template->render('pages/bugs_generating_backtrace_win32.php');
H A Dbugs-generating-backtrace.php14 echo $template->render('pages/bugs_generating_backtrace.php');
H A Dsearch-howto.php14 echo $template->render('pages/search_how_to.php');
H A Dhow-to-report.php14 echo $template->render('pages/how_to_report.php');
H A Dbugs-getting-valgrind-log.php14 echo $template->render('pages/bugs_getting_valgrind_log.php');
H A Dquick-fix-desc.php19 echo $template->render('pages/quick_fix_desc.php', [
H A Dindex.php49 echo $template->render('pages/index.php', [
/web-bugs/docs/
H A Dtemplates.md3 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 Dprepend.php87 $template = $container->get(Engine::class); variable
88 $template->assign([
H A Dauth.php27 $template->assign([
/web-bugs/
H A Dcomposer.lock494 "phpunit/php-text-template": "^1.2.1",
609 "name": "phpunit/php-text-template",
613 "url": "https://github.com/sebastianbergmann/php-text-template.git",
618 …"url": "https://api.github.com/repos/sebastianbergmann/php-text-template/zipball/31f8b717e51d9a2af…
642 "description": "Simple template engine.",
643 "homepage": "https://github.com/sebastianbergmann/php-text-template/",
645 "template"
648 "issues": "https://github.com/sebastianbergmann/php-text-template/issues",
649 "source": "https://github.com/sebastianbergmann/php-text-template/tree/1.2.1"
801 "phpunit/php-text-template": "^1.2.1",

Completed in 25 milliseconds