PHP - Looking for an HTML Generator/Manager
Posted
by John Himmelman
on Stack Overflow
See other posts from Stack Overflow
or by John Himmelman
Published on 2010-03-30T18:13:26Z
Indexed on
2010/03/30
19:33 UTC
Read the original article
Hit count: 322
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?
© Stack Overflow or respective owner