### =====Example Template Start=====

Company Home Space: ${companyhome.properties.name}
My Home Space: ${userhome.properties.name}
Company Home children count: ${companyhome.children?size}
Company Home first child node name: ${companyhome.children[0].properties.name}
Current Document Name: ${document.name}
Current Space Name: ${space.name}

#### List of child spaces in my Home Space:

<#list userhome.children as child> <#if child.isContainer>
| ${child.properties.name} (${child.children?size}) | Path: ${child.displayPath}

#### List of docs in my Home Space (text only content shown inline, JPG images shown as thumbnails):

<#list userhome.children as child> <#if child.isDocument>
| ${child.properties.name}
<#if child.mimetype = "text/plain">
| ${child.content}
<#elseif child.mimetype = "image/jpeg">

#### Assoc example:

<#if userhome.children[0].assocs["cm:contains"]?exists> ${userhome.children[0].assocs["cm:contains"][0].name}

### =====Example Template End=====