for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Template.php - Trait for template functions
*
* @package jaxon-core
* @author Thierry Feuzeu <[email protected]>
* @copyright 2016 Thierry Feuzeu <[email protected]>
* @license https://opensource.org/licenses/BSD-3-Clause BSD 3-Clause License
* @link https://github.com/jaxon-php/jaxon-core
*/
namespace Jaxon\Utils\Traits;
use Jaxon\DI\Container;
trait Template
{
* Render a template
* @param string $sTemplate The name of template to be rendered
* @param string $aVars The template vars
* @return string The template content
public function render($sTemplate, array $aVars = [])
return Container::getInstance()->getTemplate()->render($sTemplate, $aVars);
}