An open API service indexing awesome lists of open source software.

https://github.com/yatsenkolesh/dot-js-php-render

doT js templates render for php
https://github.com/yatsenkolesh/dot-js-php-render

dotjs php php-library

Last synced: 6 months ago
JSON representation

doT js templates render for php

Awesome Lists containing this project

README

          

## dot-js-php-render

#### License - BSD-3-Clause
#### Uses for render doT templates in PHP

#### Use example:

```php
$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
```