xeki-tech/html-twig

There is no license information available for the latest version (1.0.7) of this package.

Handing twig in xeki framework

Maintainers

Package info

github.com/xeki-tech/html-twig

Homepage

pkg:composer/xeki-tech/html-twig

Statistics

Installs: 1 060

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

1.0.7 2021-07-28 20:40 UTC

This package is auto-updated.

Last update: 2026-03-29 01:21:44 UTC


README

Lib for use twig Doc twig for templates: https://twig.symfony.com/doc/3.x/templates.html Twig min ^3

Example use

$html = \xeki\module_manager::import_module('html-twig');
$data = [];
$data[name]='nameUser';
$html->render('users/list_all.html',$data);

Example template

{% for item in users %}
    <li>{{ item.name }}</li>
{% endfor %}

{% if name starts with 'F' %}
    <li>{{ item.name }}</li>
{% endif %}