Lines Matching refs:html
52 $template = $twig->load('index.html');
69 echo $twig->render('index.html', ['the' => 'variables', 'go' => 'here']);
130 As of Twig 1.8, you can set the escaping strategy to use (``html``, ``js``,
210 $twig->render('@admin/index.html', []);
231 'index.html' => 'Hello {{ name }}!',
235 echo $twig->render('index.html', ['name' => 'Fabien']);
254 'base.html' => '{% block content %}{% endblock %}',
257 … 'index.html' => '{% extends "base.html" %}{% block content %}Hello {{ name }}{% endblock %}',
258 'base.html' => 'Will never be loaded',
266 return as soon as the template is found. When rendering the ``index.html``
268 ``base.html`` template will be loaded from ``$loader1``.
381 $escaper = new \Twig\Extension\EscaperExtension('html');
384 If set to ``html``, all variables in templates are escaped (using the ``html``
397 {% autoescape 'html' %}
450 safe for the current context (e.g. ``html`` or ``js``). ``escape`` and
451 ``escape('html')`` are marked safe for HTML, ``escape('js')`` is marked
457 {{ var|escape('html') }} {# will be escaped for HTML and JavaScript #}
507 {% include 'user.html' %}