Change formatting.
[Sone.git] / src / main / resources / templates / insert / sone.xml
index 5f72f18..a0fc281 100644 (file)
@@ -1,6 +1,7 @@
 <?xml version="1.0" encoding="utf-8" ?>
 <sone>
 
+       <id><% currentSone.id></id>
        <name><% currentSone.name|html></name>
 
        <profile>
@@ -9,4 +10,14 @@
                <last-name><% currentSone.profile.lastName|html></last-name>
        </profile>
 
+       <posts>
+               <%foreach currentSone.posts post>
+               <post>
+                       <id><% post.id></id>
+                       <time><% post.time></time>
+                       <text><% post.text|html></text>
+               </post>
+               <%/foreach>
+       </posts>
+
 </sone>