#macro templateList filepath=''> <@tools.fileList path=filepath> <#list list as a> <#if !a.directory><@t.merge 'paths' filepath?has_content?then(filepath+'/','')+a.fileName/>#if> #list> <@sys.lock userId=admin.id itemType='template' itemIds=t.paths><#assign lockMap=map!/>@sys.lock> <#if lockMap?has_content> <#list lockMap as k,lock> <#if lock.userId?has_content><@t.merge 'userIds' lock.userId/>#if> #list> #if> <@sys.user ids=t.userIds><#assign userMap=map!/>@sys.user> <#list list as a> <#local currentPath=filepath?has_content?then(filepath+'/','')+a.fileName>