[ Avaa Bypassed ]




Upload:

Command:

hmhc3928@18.117.148.67: ~ $
``source``
==========

.. versionadded:: 1.15
    The ``source`` function was added in Twig 1.15.

.. versionadded:: 1.18.3
    The ``ignore_missing`` flag was added in Twig 1.18.3.

The ``source`` function returns the content of a template without rendering it:

.. code-block:: twig

    {{ source('template.html') }}
    {{ source(some_var) }}

When you set the ``ignore_missing`` flag, Twig will return an empty string if
the template does not exist:

.. code-block:: twig

    {{ source('template.html', ignore_missing = true) }}

The function uses the same template loaders as the ones used to include
templates. So, if you are using the filesystem loader, the templates are looked
for in the paths defined by it.

Arguments
---------

* ``name``: The name of the template to read
* ``ignore_missing``: Whether to ignore missing templates or not

Filemanager

Name Type Size Permission Actions
attribute.rst File 679 B 0644
block.rst File 968 B 0644
constant.rst File 686 B 0644
country_timezones.rst File 799 B 0644
cycle.rst File 546 B 0644
date.rst File 1.3 KB 0644
dump.rst File 1.63 KB 0644
html_classes.rst File 899 B 0644
include.rst File 2.42 KB 0644
index.rst File 213 B 0644
max.rst File 403 B 0644
min.rst File 402 B 0644
parent.rst File 562 B 0644
random.rst File 1.2 KB 0644
range.rst File 1.2 KB 0644
source.rst File 852 B 0644
template_from_string.rst File 1.27 KB 0644