yatsenkolesh/dot-js-php-render

doT js templates render for php Edit

0.0.3 2018-04-18 16:40 UTC

This package is not auto-updated.

Last update: 2024-11-15 20:37:07 UTC


README

License - BSD-3-Clause

Uses for render doT templates in PHP

Use example:

$doT = doT\doT::instance(DOCROOT.'/modules/Work/views/PR/Products/doT/option-content.php', 1); // or first code of template in first arg
$doT -> assign([
 'id' => 2,
 'options' => 'options-list'
]);
echo $doT-> render('option-content-tmpl'); //find in file id content or just content

To install with composer

 composer require yatsenkolesh/dot-js-php-render