From: David ‘Bombe’ Roden Date: Sat, 1 Jan 2011 16:41:26 +0000 (+0100) Subject: Include albums in inserted XML. X-Git-Tag: beta-freefall-0.6.2-1~138 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=eb33b3c9209b22b1b772060afe6cd0a383bf0e78;p=Sone.git Include albums in inserted XML. --- diff --git a/src/main/resources/templates/insert/include/album.xml b/src/main/resources/templates/insert/include/album.xml new file mode 100644 index 0000000..cd845da --- /dev/null +++ b/src/main/resources/templates/insert/include/album.xml @@ -0,0 +1,23 @@ + + <% album.id|xml> + <% album.name|xml> + <% album.description|xml> + + <%foreach album.albums album> + <%include insert/include/album.xml> + <%/foreach> + + + <%foreach album.images image> + + <% image.id|xml> + <% image.creationTime|xml> + <% image.key|xml> + <% image.width|xml> + <% image.height|xml> + <% image.title|xml> + <% image.description|xml> + + <%/foreach> + + diff --git a/src/main/resources/templates/insert/sone.xml b/src/main/resources/templates/insert/sone.xml index 4e8cbae..a2c6c09 100644 --- a/src/main/resources/templates/insert/sone.xml +++ b/src/main/resources/templates/insert/sone.xml @@ -51,4 +51,10 @@ <%/foreach> + + <%foreach currentSone.albums album> + <%include insert/include/album.xml> + <%/foreach> + +