${message("templates.general_example.example_template_start")}

${message("templates.general_example.company_home_space")} ${companyhome.properties.name}
${message("templates.general_example.my_home_space")} ${userhome.properties.name}
${message("templates.general_example.company_home_children_count")} ${companyhome.children?size}
${message("templates.general_example.company_home_first_child_node_name")} ${companyhome.children[0].properties.name}
<#if document?exists> ${message("templates.general_example.current_document_name")} ${document.name}
${message("templates.general_example.current_space_name")} ${space.name}

${message("templates.general_example.list_of_child_spaces_in_my_home_space")}

<#list userhome.children as child> <#if child.isContainer>
${child.properties.name} (${child.children?size}) ${message("templates.general_example.path")} ${child.displayPath}

${message("templates.general_example.list_of_docs_in_my_home_space")}

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

${message("templates.general_example.assoc_example")}

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

${message("templates.general_example.example_template_end")}