tigron/skeleton-template-smarty

Smarty templating for Skeleton

Installs: 2 041

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 5

Forks: 0

Open Issues: 0

pkg:composer/tigron/skeleton-template-smarty

v0.1.1 2024-02-29 10:14 UTC

This package is auto-updated.

Last update: 2025-09-29 01:53:07 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');