Change formatting.
[Sone.git] / src / main / resources / templates / insert / sone.xml
index 0bb35b0..a0fc281 100644 (file)
@@ -1,6 +1,23 @@
 <?xml version="1.0" encoding="utf-8" ?>
 <sone>
 
+       <id><% currentSone.id></id>
        <name><% currentSone.name|html></name>
 
+       <profile>
+               <first-name><% currentSone.profile.firstName|html></first-name>
+               <middle-name><% currentSone.profile.middleName|html></middle-name>
+               <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>