Home
last modified time | relevance | path

Searched refs:template (Results 301 – 325 of 695) sorted by path

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

/plugin/findologicxmlexport/vendor/phpunit/php-text-template/src/
H A DTemplate.php21 protected $template = ''; variable in Text_Template
62 $this->template = file_get_contents($file);
66 $this->template = file_get_contents($distFile);
104 return str_replace($keys, $this->values, $this->template);
/plugin/findologicxmlexport/vendor/phpunit/php-token-stream/tests/_fixture/
H A Dsource4.php7 getHtml($template); argument
/plugin/findologicxmlexport/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/
H A DGenerator.php1090 $template = $this->getTemplate($templateDir . $templateFile);
1092 $template->setVar(
1108 return $template->render();
/plugin/findologicxmlexport/vendor/phpunit/phpunit/src/Framework/
H A DTestCase.php777 $template = new Text_Template(
837 $template->setVar(
863 $this->prepareTemplate($template);
866 $php->runTestJob($template->render(), $this, $result);
2179 * @param Text_Template $template
2181 protected function prepareTemplate(Text_Template $template) argument
/plugin/findologicxmlexport/vendor/twig/extensions/doc/
H A Di18n.rst17 internationalized template. Here is a simple configuration example from the
39 Use the ``trans`` block to mark parts in the template as translatable:
138 template strings at some point.
152 PHP files, you can use ``xgettext`` on the template cache instead.
161 // force auto-reload to always have the latest version of the template
185 Another workaround is to use `Twig Gettext Extractor`_ and extract the template
/plugin/findologicxmlexport/vendor/twig/extensions/test/Twig/Tests/
H A DgrammarTest.php25 public function testGrammar($tag, $grammar, $template, $output, $exception) argument
27 …$twig = new Twig_Environment(new Twig_Loader_Array(array('template' => $template)), array('cache' …
33 $template = $twig->loadTemplate('template');
49 $actual = $template->render(array());
/plugin/findologicxmlexport/vendor/twig/twig/
H A DCHANGELOG201 * fixed template paths when a template name contains a protocol like vfs://
206 * removed template source code from generated template classes when debug is disabled
214 * fixed template paths when a template is stored in a PHAR file
220 * changed the way we store template source in template classes
247 * undeprecated _self (should only be used to get the template name, not the template instance)
283 * fixed a race condition in template loading
327 * fixed wrong error message when including an undefined template in a child template
358 autoescaping strategy for a template based on template file extension.
582 * fixed template line number in some exceptions
601 * optimized parent template creation when the template does not use dynamic inheritance
[all …]
H A DREADME.rst1 Twig, the flexible, fast, and secure template language for PHP
4 Twig is a template language for PHP, released under the new BSD license (code
7 Twig uses a syntax similar to the Django and Jinja template languages which
/plugin/findologicxmlexport/vendor/twig/twig/doc/
H A Dadvanced.rst25 in real-time, either disable template caching or package your code into an
114 A global variable is like any other template variable, except that it's
120 You can then use the ``text`` variable anywhere in a template:
157 And here is how to use it in a template:
292 template using it. See :ref:`deprecation-notices` for more information.
385 One of the most exciting features of a template engine like Twig is the
428 variables from within a template. The tag can be used like follows:
442 multiple assignments by default (cf. the template designers chapter for
447 * Defining a Token Parser class (responsible for parsing the template code);
557 * ``addDebugInfo()``: Adds the line of the original template file related to
[all …]
H A Dadvanced_legacy.rst25 updated. To see your changes in real-time, either disable template caching
115 A global variable is like any other template variable, except that it's
121 You can then use the ``text`` variable anywhere in a template:
135 callable. For instance, let's say you have the following code in a template:
141 When compiling this template to PHP, Twig looks for the PHP callable
304 When compiling this template to PHP, Twig looks for the PHP callable
364 One of the most exciting feature of a template engine like Twig is the
369 variables from within a template. The tag can be used like follows:
383 multiple assignments by default (cf. the template designers chapter for
388 * Defining a Token Parser class (responsible for parsing the template code);
[all …]
H A Dapi.rst52 $template = $twig->load('index.html');
67 You can also load and render the template in one fell swoop::
103 The base template class to use for generated
228 of strings bound to template names::
268 ``base.html`` template will be loaded from ``$loader1``.
289 * @return string The template source code
305 * Returns true if the template is still fresh.
307 * @param string $name The template name
502 untrusted template code by using the ``sandbox`` tag:
582 the template syntax.
[all …]
H A Dcoding_standards.rst93 the target language of the rendered template):
H A Ddeprecated.rst11 As of Twig 1.21, Twig generates deprecation notices when a template uses
189 current template name, which will continue to work in Twig 2.0. In Twig 2.0,
190 ``_self`` returns the current template name instead of the current
H A Dinternals.rst12 The rendering of a Twig template can be summarized into four key steps:
14 * **Load** the template: If the template is already compiled, load it and go
17 * First, the **lexer** tokenizes the template source code into small pieces
23 * **Evaluate** the template: It basically means calling the ``display()``
24 method of the compiled template and passing it the context.
29 The lexer tokenizes a template source code into a token stream (each token is
42 * ``\Twig\Token::EOF_TYPE``: Ends of template.
58 Here is the output for the ``Hello {{ name }}`` template:
91 Here is the output for the ``Hello {{ name }}`` template:
113 generates PHP code usable for runtime execution of the template.
[all …]
H A Dintro.rst4 This is the documentation for Twig, the flexible, fast, and secure template
7 If you have any exposure to other text-based template languages, such as
17 * *Secure*: Twig has a sandbox mode to evaluate untrusted template code. This
18 allows Twig to be used as a template language for applications where users
19 may modify the template design.
68 The ``render()`` method loads the template passed as a first argument and
H A Drecipes.rst34 template names as keys and template contents as values (as done by
101 A template can be customized in two different ways:
103 * *Inheritance*: A template *extends* a parent template and overrides some
107 template it finds in a list of configured directories; a template found in a
111 (aka a template in a directory further in the list)?
234 instance, if you have the following template data::
305 saving it. If the template code is stored in a `$template` variable, here is
311 // the $template is valid
323 // the $template is valid
514 From a template, you can easily load a template stored in a string via the
[all …]
/plugin/findologicxmlexport/vendor/twig/twig/doc/filters/
H A Descape.rst12 output. It supports different escaping strategies depending on the template
/plugin/findologicxmlexport/vendor/twig/twig/doc/functions/
H A Dblock.rst8 Support for the template argument was added in Twig 1.28.
10 When a template uses inheritance and if you want to print a block multiple
22 template:
29 current template:
H A Ddump.rst7 The ``dump`` function dumps information about a template variable. This is
8 mostly useful to debug a template that does not behave as expected by
H A Dinclude.rst7 The ``include`` function returns the rendered content of a template:
11 {{ include('template.html') }}
25 {{ include('template.html', {foo: 'bar'}) }}
38 {{ include('template.html', with_context = false) }}
43 // {{ include(template) }}
46 $template = $twig->loadTemplate('some_template.twig');
49 $template = $twig->load('some_template.twig');
51 $twig->display('template.twig', ['template' => $template]);
54 the template does not exist:
61 inclusion. The first template that exists will be rendered:
[all …]
H A Dparent.rst4 When a template uses inheritance, it's possible to render the contents of the
18 defined in the ``base.html`` template.
H A Dsource.rst10 The ``source`` function returns the content of a template without rendering it:
14 {{ source('template.html') }}
18 the template does not exist:
22 {{ source('template.html', ignore_missing = true) }}
24 The function uses the same template loaders as the ones used to include
31 * ``name``: The name of the template to read
H A Dtemplate_from_string.rst7 The ``template_from_string`` function loads a template from a string:
12 {{ include(template_from_string(page.template)) }}
27 takes a template as an argument (like the ``embed`` or ``extends`` tags).
32 * ``template``: The template
/plugin/findologicxmlexport/vendor/twig/twig/doc/tags/
H A Dautoescape.rst5 template to be escaped or not by using the ``autoescape`` tag:
49 values explicitly marked as safe. Those can be marked in the template by using
58 Functions returning template data (like :doc:`macros<macro>` and
H A Ddeprecated.rst8 PHP function) where the ``deprecated`` tag is used in a template:
13 {% deprecated 'The "base.twig" template is deprecated, use "layout.twig" instead.' %}

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