PHP - Looking for an HTML Generator/Manager
- by John Himmelman
I'm trying to find a tool that I can use to generate markup programatically (non-irl word). Here is an example of what I'm trying to accomplish in pseudo-code...
$htmlDoc = new HTML_Document();
$htmlDoc->setTitle('Cool Title');
$htmlDoc->addJs('some_js_file.js');
$htmlDoc->addStylesheet('some_css_file.css');
$divElement = new HTML_Element_Div();
$htmlDoc->append('body', $divElement);
$output = $htmlDoc->generate();
What is the best tool for this?