<#if isRoot> [{ "name": "模板文件夹", "open": true <#if tplList?size gt 0>, "isParent": true, "children": [ <#list tplList as tpl> { "path": "${tpl.name}", "shortName": "${tpl.shortName!}", "name": "${tpl.filename}", "click":"loadTpl('${tpl.name!}')", <#if !tpl.leaf> "isParent": true, "open": false <#else> "open": false, "icon":"${base}/plugin/ligerui/ligerUI/skins/Aqua/images/tree/folder.gif" }<#if tpl_has_next>, ] }] <#else> [ <#list tplList as tpl> { "path": "${tpl.name}", "shortName": "${tpl.shortName!}", "name": "${tpl.filename}", "click":"loadTpl('${tpl.name!}')", <#if !tpl.leaf> "isParent": true, "open": false <#else> "open": false, "icon":"${base}/plugin/ligerui/ligerUI/skins/Aqua/images/tree/folder.gif" }<#if tpl_has_next>, ]