Home
last modified time | relevance | path

Searched refs:template (Results 326 – 350 of 695) sorted by path

1...<<11121314151617181920>>...28

/plugin/findologicxmlexport/vendor/twig/twig/doc/tags/
H A Dembed.rst9 It allows you to include another template's contents, just like ``include``
11 included template, like when extending a template.
13 Think of an embedded template as a "micro layout skeleton".
28 The ``embed`` tag takes the idea of template inheritance to the level of
29 content fragments. While template inheritance allows for "document skeletons",
35 Imagine a base template shared by multiple HTML pages, defining a single block
45 │ │ (child template to │ │
92 template: one with vertically stacked boxes to be used by the "foo" and
97 template directly.
117 Page template ``foo.twig``:
[all …]
H A Dextends.rst4 The ``extends`` tag can be used to extend a template from another one.
39 template may override those portions of the template.
44 A child template might look like this:
65 template "extends" another template. When the template system evaluates this
67 in the template.
70 value from the parent template is used instead.
76 similarly-named ``block`` tags in a template, that template's parent wouldn't
157 instance, Twig will use it as the parent template::
173 first template that exists will be used as a parent:
189 In this example, the template will extend the "minimum.html" layout template
[all …]
H A Dfilter.rst4 Filter sections allow you to apply regular Twig filters on a block of template
H A Dimport.rst7 There are two ways to import templates. You can import the complete template
37 Alternatively you can import names from the template into the current
H A Dinclude.rst32 {% set content = include('template.html') %}
47 {% include 'template.html' with {'foo': 'bar'} %}
50 {% include 'template.html' with vars %}
57 {% include 'template.html' with {'foo': 'bar'} only %}
62 {% include 'template.html' only %}
70 The template name can be any valid Twig expression:
80 // {% include template %}
83 $template = $twig->loadTemplate('some_template.twig');
86 $template = $twig->load('some_template.twig');
88 $twig->display('template.twig', ['template' => $template]);
[all …]
H A Dmacro.rst42 But as with PHP functions, macros don't have access to the current template
53 Macros can be defined in any template, and need to be "imported" before being
62 macros, or a template and some macros), and import the functions as items of
72 If macros are defined and used in the same template, you can use the
83 When you define a macro in the template where you are going to use it, you
H A Dsandbox.rst5 template, when sandboxing is not enabled globally for the Twig environment:
21 cannot be used to sandbox a section of a template. The following example
H A Dset.rst13 After the ``set`` call, the ``foo`` variable is available in the template like
H A Duse.rst11 template blocks reusable without using inheritance.
14 limited to single inheritance; a template can only extend one other template.
15 This limitation makes template inheritance simple to understand and easy to
38 ``blocks.html`` into the current template (it's like macros, but for blocks):
47 main template. The code is mostly equivalent to the following one (the
60 The ``use`` tag only imports a template if it does not extend another
61 template, if it does not define macros, and if the body is empty. But it
67 passed to the template, the template reference cannot be an expression.
69 The main template can also override any imported block. If the template
88 template:
[all …]
H A Dverbatim.rst8 parsed. For example to put Twig syntax as example into a template you can use
/plugin/findologicxmlexport/vendor/twig/twig/doc/
H A Dtemplates.rst16 of the template.
42 result of an expression to the template.
131 * ``_self``: references the current template;
308 will be available in the included template too:
318 The name of the template depends on the template loader. For instance, the
364 template engine that a child template may override those portions of the
365 template.
367 A child template might look like this:
388 engine that this template "extends" another template. When the template system
390 be the first tag in the template.
[all …]
/plugin/findologicxmlexport/vendor/twig/twig/ext/twig/
H A Dtwig.c53 ZEND_ARG_INFO(0, template)
541 static void TWIG_RUNTIME_ERROR(zval *template TSRMLS_DC, char *message, ...) in TWIG_RUNTIME_ERROR()
580 call_user_function(EG(function_table), &template, filename_func, filename, 0, 0 TSRMLS_CC); in TWIG_RUNTIME_ERROR()
701 zval *template; in PHP_FUNCTION() local
823 … TWIG_RUNTIME_ERROR(template TSRMLS_CC, "Key \"%s\" does not exist as the array is empty.", item); in PHP_FUNCTION()
834 TWIG_RUNTIME_ERROR(template TSRMLS_CC, in PHP_FUNCTION()
841 TWIG_RUNTIME_ERROR(template TSRMLS_CC, in PHP_FUNCTION()
890 …TWIG_RUNTIME_ERROR(template TSRMLS_CC, "Impossible to invoke a method (\"%s\") on a null variable.… in PHP_FUNCTION()
892 …TWIG_RUNTIME_ERROR(template TSRMLS_CC, "Impossible to invoke a method (\"%s\") on an array.", item… in PHP_FUNCTION()
908 tmp_self_cache = TWIG_GET_STATIC_PROPERTY(template, "cache" TSRMLS_CC); in PHP_FUNCTION()
[all …]
/plugin/findologicxmlexport/vendor/twig/twig/src/
H A DEnvironment.php533 * @param string $template The template name
540 public function createTemplate($template) argument
542 $name = sprintf('__string_template__%s', hash('sha256', $template, false));
545 new ArrayLoader([$name => $template]),
551 $template = new TemplateWrapper($this, $this->loadTemplate($name));
563 return $template;
H A DParser.php323 public function embedTemplate(ModuleNode $template) argument
325 $template->setIndex(mt_rand());
327 $this->embeddedTemplates[] = $template;
H A DTemplate.php199 $template = $blocks[$name][0];
202 $template = $this->blocks[$name][0];
205 $template = null;
210 if (null !== $template && !$template instanceof self) {
214 if (null !== $template) {
216 $template->$block($context, $blocks);
346 if (\is_array($template)) {
347 return $this->env->resolveTemplate($template);
350 if ($template instanceof self || $template instanceof TemplateWrapper) {
351 return $template;
[all …]
H A DTemplateWrapper.php22 private $template; variable in Twig\\TemplateWrapper
30 public function __construct(Environment $env, Template $template) argument
33 $this->template = $template;
47 return $this->template->render($context, \func_num_args() > 1 ? func_get_arg(1) : []);
59 $this->template->display($context, \func_num_args() > 1 ? func_get_arg(1) : []);
72 return $this->template->hasBlock($name, $context);
84 return $this->template->getBlockNames($context);
101 $this->template->displayBlock($name, $context);
127 $this->template->displayBlock($name, $this->env->mergeGlobals($context));
135 return $this->template->getSourceContext();
[all …]
/plugin/findologicxmlexport/vendor/twig/twig/src/Error/
H A DError.php276 $template = null;
285 $template = $trace['object'];
292 if (null !== $template && null === $this->filename) {
293 $this->filename = $template->getTemplateName();
297 if (null !== $template && null === $this->sourcePath) {
298 $src = $template->getSourceContext();
303 if (null === $template || $this->lineno > -1) {
307 $r = new \ReflectionObject($template);
324 foreach ($template->getDebugInfo() as $codeLine => $templateLine) {
/plugin/findologicxmlexport/vendor/twig/twig/src/Extension/
H A DCoreExtension.php1528 …* @param string|array $template The template to render or an array of templates to try consec…
1536 function twig_include(Environment $env, $context, $template, $variables = [], $withContext = true, … argument
1553 $result = $env->resolveTemplate($template)->render($variables);
H A DStringLoaderExtension.php45 * @param string $template A template as a string or object implementing __toString()
49 function twig_template_from_string(Environment $env, $template) argument
51 return $env->createTemplate((string) $template);
/plugin/findologicxmlexport/vendor/twig/twig/src/Loader/
H A DArrayLoader.php47 * @param string $template The template source
49 public function setTemplate($name, $template) argument
51 $this->templates[(string) $name] = $template;
/plugin/findologicxmlexport/vendor/twig/twig/src/Node/Expression/
H A DBlockReferenceExpression.php26 * @param Node|null $template
28 public function __construct(\Twig_NodeInterface $name, $template = null, $lineno, $tag = null) argument
30 if (\is_bool($template)) {
33 $template = null;
37 if (null !== $template) {
38 $nodes['template'] = $template;
/plugin/findologicxmlexport/vendor/twig/twig/src/Node/
H A DModuleNode.php80 foreach ($this->getAttribute('embedded_templates') as $template) {
81 $compiler->subcompile($template);
/plugin/findologicxmlexport/vendor/twig/twig/src/Profiler/
H A DProfile.php26 private $template; variable in Twig\\Profiler\\Profile
33 public function __construct($template = 'main', $type = self::ROOT, $name = 'main') argument
35 $this->template = $template;
43 return $this->template;
163 …return serialize([$this->template, $this->name, $this->type, $this->starts, $this->ends, $this->pr…
168 …list($this->template, $this->name, $this->type, $this->starts, $this->ends, $this->profiles) = uns…
/plugin/findologicxmlexport/vendor/twig/twig/src/Test/
H A DIntegrationTestCase.php191 $template = $twig->load('index.twig');
206 $output = trim($template->render(eval($match[1].';')), "\n ");
/plugin/findologicxmlexport/vendor/twig/twig/src/TokenParser/
H A DUseTokenParser.php37 $template = $this->parser->getExpressionParser()->parseExpression();
40 if (!$template instanceof ConstantExpression) {
64 … $this->parser->addTrait(new Node(['template' => $template, 'targets' => new Node($targets)]));

1...<<11121314151617181920>>...28