Download the PHP package tigron/skeleton-template-twig without Composer
On this page you can find all versions of the php package tigron/skeleton-template-twig. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download tigron/skeleton-template-twig
More information about tigron/skeleton-template-twig
Files in tigron/skeleton-template-twig
Download tigron/skeleton-template-twig
More information about tigron/skeleton-template-twig
Files in tigron/skeleton-template-twig
Vendor tigron
Package skeleton-template-twig
Short Description Twig templating for Skeleton
License MIT
Package skeleton-template-twig
Short Description Twig templating for Skeleton
License MIT
Please rate this library. Is it a good library?
Informations about the package skeleton-template-twig
skeleton-template-twig
Description
Twig templating for Skeleton.
Installation
Installation via composer:
composer require tigron/skeleton-template-twig
Howto
Load the library, point it to your template directory, assign a variable if you need to and go!
<?php
$renderer = new \Skeleton\Template\Twig\Twig();
$renderer->add_template_path('/path/to/my/templates/');
$renderer->assign('my_variable', 'some value');
// Optional translation support (requires skeleton-i18n)
$renderer->set_translation($skeleton_i18n_translation_instance);
echo $renderer->render('template.twig');
Extra configuration:
/**
* Enable debugging
*/
\Skelton\Template\Twig\Config::$debug = false;
/**
* Cache path
*
* This directory will be used to store the cached templates
*/
\Skelton\Template\Twig\Config::$cache_path = '/tmp';
/**
* Auto_escape
*
* Indicate if the resulting template should be auto-escaped
*/
\Skelton\Template\Twig\Config::$autoescape = true;All versions of skeleton-template-twig with dependencies
PHP Build Version
Package Version
Requires
twig/twig Version
3.*
twig/extra-bundle Version 3.*
twig/markdown-extra Version 3.*
twig/string-extra Version 3.*
twig/cache-extra Version 3.*
michelf/php-markdown Version ^1.8 || ^2.0
twig/extra-bundle Version 3.*
twig/markdown-extra Version 3.*
twig/string-extra Version 3.*
twig/cache-extra Version 3.*
michelf/php-markdown Version ^1.8 || ^2.0
The package tigron/skeleton-template-twig contains the following files
Loading the files please wait ...