ride / lib-template-smarty
Smarty engine for the template library of the Ride framework.
Installs: 4 173
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 8
Forks: 0
Open Issues: 0
Requires
- ride/lib-system: ^1.0.0
- ride/lib-template: ^1.0.0
- smarty/smarty: ^5.0.0
README
Smarty engine for the template library of the PHP Ride framework.
Read the documentation for Smarty.
Code Sample
Check this code sample to see how to initialize this library:
use ride\library\template\engine\SmartyEngine; use ride\library\template\engine\SmartyResourceHandler; function createSmartyTemplateEngine(System $system) { $resourceHandler = new SmartyResourceHandler($system->getFileBrowser(), 'view/smarty'); $compileDirectory = $system->getFileSystem()->getFile('/path/to/compile/cache'); $escapeHtml = true; $engine = new SmartyEngine($resourceHandler, $compileDirectory, $escape); $engine->addPublicDirectory('/path/to/plugins'); return $engine; }
Implementations
You can check the related implementations of this library:
- ride/app-template-smarty
- ride/lib-template
- ride/web-template-smarty
- ride/web-template-smarty-asset
- ride/web-template-smarty-minifier
Installation
You can use Composer to install this library.
composer require ride/lib-template-smarty