<ulclass="Ak-ps-tree-conul"><!--koforeach: $root. list--><!--koif:1==1--><liclass="Pstree-node pstree-closed"><!--koif: ChildItem () .length>0--><iclass="Ps-treeicon"Data-bind="Click:openthisnode"></i><!--/ko--><!--koif: ChildItem (). length==0--><iclass="Ps-treeicon Empty"></i><!--/ko--><a href="javascript:void (0)" class="Pstree-anchor"Data-bind="Text:name,click:clickthisdata"></a><!--koif: ChildItem () .length>0--><!--ko Template: {name:'Template',foreach: ChildItem}--><!--/ko--><!--/ko--></li><!--/ko--><!--/ko--></UL><SCR IPT type="text/html"Id="Template"><ulclass="Pstree-children"><liclass="Pstree-node pstree-closed"><!--koif: ChildItem () .length>0--><iclass="Ps-treeicon"Data-bind="Click:openthisnode"></i><!--/ko--><!--koif: ChildItem (). length==0--><iclass="Ps-treeicon Empty"></i><!--/ko--><a href="javascript:void (0)" class="Pstree-anchor"Data-bind="Text:name,click:clickthisdata"></a><!--koif: ChildItem () .length>0--><!--ko Template: {name:'Template',foreach: ChildItem}--><!--/ko--><!--/ko--></li></ul></script>
Share some syntax about knockout, bind the tree