From: David ‘Bombe’ Roden Date: Thu, 14 Oct 2010 04:35:25 +0000 (+0200) Subject: Store the Sone in the insert site, too. X-Git-Tag: 0.1-RC1~445 X-Git-Url: https://git.pterodactylus.net/?p=Sone.git;a=commitdiff_plain;h=c81560515806933fcf632cafa8cdc3da7dc165e5 Store the Sone in the insert site, too. --- diff --git a/src/main/java/net/pterodactylus/sone/core/SoneInserter.java b/src/main/java/net/pterodactylus/sone/core/SoneInserter.java index afd406f..af0f27e 100644 --- a/src/main/java/net/pterodactylus/sone/core/SoneInserter.java +++ b/src/main/java/net/pterodactylus/sone/core/SoneInserter.java @@ -187,6 +187,9 @@ public class SoneInserter extends AbstractService { /* first, create an index.html. */ manifestEntries.put("index.html", createManifestElement("index.html", "text/html; charset=utf-8", "/templates/insert/index.html")); + /* now, store the sone. */ + manifestEntries.put("sone.xml", createManifestElement("sone.xml", "text/xml; charset=utf-8", "/templates/insert/sone.xml")); + return manifestEntries; } diff --git a/src/main/resources/templates/insert/sone.xml b/src/main/resources/templates/insert/sone.xml new file mode 100644 index 0000000..0bb35b0 --- /dev/null +++ b/src/main/resources/templates/insert/sone.xml @@ -0,0 +1,6 @@ + + + + <% currentSone.name|html> + +