+static const char *get_footer()
+{
+ const char *path;
+
+ if (!footer) {
+ path = DEFAULT_WWW_DIR"/footer.tpl";
+ footer = file_get_content(path);
+
+ if (!footer)
+ log_err("Failed to read footer template: %s", path);
+ }
+
+ return footer;
+}
+
+static const char *get_ppa_body()
+{
+ const char *path;
+
+ if (!ppa_body) {
+ path = DEFAULT_WWW_DIR"/ppa.tpl";
+ ppa_body = file_get_content(path);
+
+ if (!ppa_body)
+ log_err("Failed to read PPA template: %s", path);
+ }
+
+ return ppa_body;
+}
+
+