From 8838a4802ba9c8c7d3e1fa56fb8ea921ae06d524 Mon Sep 17 00:00:00 2001
From: Toke Eskildsen <te@ekot.dk>
Date: Wed, 4 Dec 2013 14:02:59 +0100
Subject: [PATCH] Feature: Custom HTML-snippet insertion as part of the
 standard templates

---
 folder_template.html | 1 +
 image_template.html  | 2 ++
 quack.sh             | 6 ++++++
 3 files changed, 9 insertions(+)

diff --git a/folder_template.html b/folder_template.html
index d2f7943..7fddc41 100644
--- a/folder_template.html
+++ b/folder_template.html
@@ -10,6 +10,7 @@
 
 <body class="folder">
 <h1>Quack <span style="color: #999">${SRC_FOLDER}</span></h1>
+<div class="foldersnippet">${SNIPPET_FOLDER}</div>
 
 <!-- TODO: Create decent bread crumbs -->
 <p>Parent folder: <a href="../index.html">${PARENT}</a></p>
diff --git a/image_template.html b/image_template.html
index 4a6e16c..8833fbc 100644
--- a/image_template.html
+++ b/image_template.html
@@ -19,6 +19,8 @@ ${IDPREVS}
 <body class="previewpage">
 <h1>Quack <span style="color: #999">${IMAGE}</span></h1>
 
+<div class="imagesnippet">${SNIPPET_IMAGE}</div>
+
 <div id="controlpanel" class="control">
 <p class="navigation">${NAVIGATION}</p>
 ${ALTERNATIVES}
diff --git a/quack.sh b/quack.sh
index 1975739..f3bab38 100755
--- a/quack.sh
+++ b/quack.sh
@@ -131,6 +131,12 @@ export PRESENTATION="true"
 export OVERLAY_BLACK=3399FF
 export OVERLAY_WHITE=FFFF00
 
+# Snippets are inserted verbatim at the top of the folder and the image pages.
+# Use them for specifying things like delivery date or provider notes.
+export SNIPPET_FOLDER=""
+export SNIPPET_IMAGE=""
+
+
 # End default settings. User-supplied overrides will be loaded from quack.settings
 
 
-- 
GitLab