tigron / skeleton-template-smarty
Smarty templating for Skeleton
Installs: 2 040
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 6
Forks: 0
Open Issues: 0
Requires
This package is auto-updated.
Last update: 2024-10-29 12:01:48 UTC
README
Description
Smarty templating for Skeleton.
Installation
Installation via composer:
composer require tigron/skeleton-template-smarty
Howto
Load the library, point it to your template directory, assign a variable if you need to and go!
<?php
$renderer = new \Skeleton\Template\Smarty\Smarty();
$renderer->set_template_directory('/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.tpl');