The following code does not work for me:
$f3->set('name','world');
echo \Template::instance()->render('template.htm');
<p>Hello, {{ @name }}!</p>
But this code does:
$f3->set('name','world');
$view=new View;
echo $view->render('template.htm');
<p>Hello, <?php echo $name; ?>!</p>
Does anyone have an idea why? Note: I have the html markup in the template.php file, and the php code is in index.html.
All of my routes are working, for some reason when I use {{ @name }} it is not being recognized as it should be an instead it is
being written verbatim to the browser window "Hello, {{ @name }}!"
ButF