- ⌂ ctemplate
- Static Methods
ctemplate Class
A class to process cTemplate.
Example
<?php
require_once('/path/to/comand.php');
$code = '#CALC(1+2)';
$repo = \comand::repo();
$log = new \io_comand_log\log();
$result = \io_comand_script\ctemplate::run_ctemplate($code, [
'repo' => $repo,
'log' => $log
]);
// echo the result: 3
echo($result);