| 
<?php
 include_once 'autoload.inc.php';
 
 $html = QHtml::factory();
 $head = QHead::factory();
 $body = QBody::factory();
 
 $title =     QTitle::factory()->add("new template engine");
 $script =     QScript::factory()->add("<!-- javascript -->");
 
 $head    ->add($title)
 ->add($script);
 
 $html    ->add($head);
 
 $div =     QDiv::factory('container')
 ->setAttribute("id","test");
 
 $textarea     = QTextarea::factory(10,80)
 ->setAttribute("id","ta")
 ->add("text für eine textarea");
 
 $div->add($textarea);
 
 $body->add($div);
 
 $html->add($body);
 
 
 print_r($html->doRender());
 
 |