public function getHTML($destroy = true, $execute_js = true)
{
$this->addHook('output', array($this, '_tsBuffer'));
$this->recursiveRender();
$this->removeHook('output', array($this, '_tsBuffer'));
$ret = $this->_tsBuffer;
$this->_tsBuffer = '';
if ($execute_js && isset($this->app->jquery)) {
/** @type App_Web $this->app */
$this->app->jquery->getJS($this);
}
if ($destroy) {
$this->destroy();
}
return $ret;
}