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
- Host: GitHub
- URL: https://github.com/yatsenkolesh/dot-js-php-render
- Owner: yatsenkolesh
- License: mit
- Created: 2016-12-03T22:06:36.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2018-04-18T16:41:01.000Z (about 8 years ago)
- Last Synced: 2025-08-02T09:48:23.604Z (11 months ago)
- Topics: dotjs, php, php-library
- Language: PHP
- Homepage:
- Size: 9.77 KB
- Stars: 6
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
```