Source

tw2.yui / tw2 / yui / templates / treeview.html

<div>

<div id="$w.compound_id">
</div>

<script type="text/javascript">
    YAHOO.util.Event.onDOMReady(function() {
        tree = new YAHOO.widget.TreeView("$w.compound_id", $w.options);
        tree.render();
    });
</script>

</div>