From e08a883d7da88c6bfcb05bee9201b338816c8ebb Mon Sep 17 00:00:00 2001 From: Uwe Sikora <sikora@sub.uni-goettingen.de> Date: Thu, 22 Feb 2018 07:58:00 +0100 Subject: [PATCH] new version 0.2.1 with absoulute css path --- controller.xql | 7 +++++++ expath-pkg.xml | 2 +- repo.xml | 2 -- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/controller.xql b/controller.xql index d9a144f..b298dc0 100644 --- a/controller.xql +++ b/controller.xql @@ -34,6 +34,13 @@ else if (contains($exist:path, "/$shared/")) then <set-header name="Cache-Control" value="max-age=3600, must-revalidate"/> </forward> </dispatch> +(: Resource paths starting with $resources are loaded from the apps resources dir :) +else if (contains($exist:path, "/$resources/")) then + <dispatch xmlns="http://exist.sourceforge.net/NS/exist"> + <forward url="{$exist:controller}/resources/{substring-after($exist:path, '/$resources/')}"> + <set-header name="Cache-Control" value="max-age=3600, must-revalidate"/> + </forward> + </dispatch> else (: everything else is passed through :) <dispatch xmlns="http://exist.sourceforge.net/NS/exist"> diff --git a/expath-pkg.xml b/expath-pkg.xml index 9d35efb..9a735fe 100644 --- a/expath-pkg.xml +++ b/expath-pkg.xml @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="UTF-8"?> -<package xmlns="http://expath.org/ns/pkg" name="http://bdn-edition.de/intermediate_format" abbrev="interformat" version="0.1" spec="1.0"> +<package xmlns="http://expath.org/ns/pkg" name="http://bdn-edition.de/intermediate_format" abbrev="interformat" version="0.2.1" spec="1.0"> <title>BdN - Intermediate Format</title> <dependency package="http://exist-db.org/apps/shared"/> </package> \ No newline at end of file diff --git a/repo.xml b/repo.xml index ac9ecef..3ca39bc 100644 --- a/repo.xml +++ b/repo.xml @@ -10,6 +10,4 @@ <target>interformat</target> <prepare>pre-install.xql</prepare> <finish/> - -<deployed>2018-02-20T15:20:27.056+01:00</deployed> </meta> \ No newline at end of file -- GitLab