From c81560515806933fcf632cafa8cdc3da7dc165e5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Thu, 14 Oct 2010 06:35:25 +0200 Subject: [PATCH] Store the Sone in the insert site, too. --- src/main/java/net/pterodactylus/sone/core/SoneInserter.java | 3 +++ src/main/resources/templates/insert/sone.xml | 6 ++++++ 2 files changed, 9 insertions(+) create mode 100644 src/main/resources/templates/insert/sone.xml 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> + + -- 2.7.4