=====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}
<#if document?exists> 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> <#if child.mimetype = "text/plain"> <#elseif child.mimetype = "image/jpeg">
${child.properties.name}
${child.content}

Assoc example:

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

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