Add ID of Sone.
[Sone.git] / src / main / resources / templates / insert / sone.xml
index 5f72f18..6818445 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,13 @@
                <last-name><% currentSone.profile.lastName|html></last-name>
        </profile>
 
+       <posts>
+               <%foreach currentSone.posts post>
+                       <post>
+                               <time><% post.time></time>
+                               <text><% post.text|html></text>
+                       </post>
+               <%/foreach>
+       </posts>
+
 </sone>