Hi,
So I'm trying to find a good templating 'engine' for PHP, but I am having the following issue:
I can't seem to find one in which I can still output a lot of content as html, and insert that into the center of the page.. an example would be like
<?php
$pagetitle = "Foo bar";
$page = new TemplateClass();
$body = "This is the body of the page. ";
$page->assign("title", $pagetitle);
$page->assign("body", $body);
$page->output();
?>
Thats the general idea of what I DONT want. I am trying to have the body inputted as html, rather than assigning html to a variable, sinec I have a lot of html and having to enter escape characters for every double quote or slash is a real pain.
Does anyone know of a templating system that will work that way?
Also, I do have a secondary question. If I wanted to implement a system where when I output, the template itself has built in php code.. so if I had blocks in the side of my page it would render that code too.
I know this is kind of an obscure explanation, but if someone understands me help would be greatly appreciated. If any more explanation is needed I will try to elaborate more.
Thanks!
Goobers.