From a37f56cf3d6391536840c4f9389977e247e6cfc8 Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Wed, 16 Jul 2014 20:49:04 +0200 Subject: Restructured to enable automatic datasources * i.e. first the content source is mapped * after that every transformation in 'template/datasource/' is called using the content map as input ** the output of the datasource transformations is stored in 'datasource/' --- datasource.xsl | 38 ------------------------- datasource/entry.xsl | 33 ---------------------- generate.xsl | 40 +++++++++++++++++++-------- meta.xml | 10 ++++--- result.xsl | 48 -------------------------------- template/datasource/pages.xsl | 52 +++++++++++++++++++++++++++++++++++ template/master.xsl | 64 ------------------------------------------- template/output/master.xsl | 64 +++++++++++++++++++++++++++++++++++++++++++ template/output/page.xsl | 23 ++++++++++++++++ template/page.xsl | 23 ---------------- 10 files changed, 174 insertions(+), 221 deletions(-) delete mode 100644 datasource.xsl delete mode 100644 datasource/entry.xsl delete mode 100644 result.xsl create mode 100644 template/datasource/pages.xsl delete mode 100644 template/master.xsl create mode 100644 template/output/master.xsl create mode 100644 template/output/page.xsl delete mode 100644 template/page.xsl diff --git a/datasource.xsl b/datasource.xsl deleted file mode 100644 index 698ca67..0000000 --- a/datasource.xsl +++ /dev/null @@ -1,38 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/datasource/entry.xsl b/datasource/entry.xsl deleted file mode 100644 index 4ea6162..0000000 --- a/datasource/entry.xsl +++ /dev/null @@ -1,33 +0,0 @@ - - - - - - - - - - - - - /usr/bin/markdown - - - - - - - - - - - - - - diff --git a/generate.xsl b/generate.xsl index f307085..65a49f3 100644 --- a/generate.xsl +++ b/generate.xsl @@ -15,6 +15,7 @@ /> + @@ -33,20 +34,37 @@ - - - [result.xsl] + + + + + + - - [datasource.xsl] - - - [source.xsl] - - - + + + + + + + + + + [source.xsl] + + + + + + + + + + + + diff --git a/meta.xml b/meta.xml index 3d6fcbc..0c0e67c 100644 --- a/meta.xml +++ b/meta.xml @@ -1,12 +1,14 @@ /home/adrian - /home/common/projects/dev/static_site_generator - /home/common/projects/dev/static_site_generator/result - /home/common/projects/dev/static_site_generator/result + /home/common/projects/dev/static_site_generator/datasource + /home/common/projects/dev/static_site_generator/result + /home/common/projects/dev/static_site_generator/result - /home/common/projects/dev/static_site_generator/source + /home/common/projects/dev/static_site_generator/source + /home/common/projects/dev/static_site_generator/template/datasource + /home/common/projects/dev/static_site_generator/template/output diff --git a/result.xsl b/result.xsl deleted file mode 100644 index 1597664..0000000 --- a/result.xsl +++ /dev/null @@ -1,48 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [template/page.xsl] - - /pages/ - - - - - diff --git a/template/datasource/pages.xsl b/template/datasource/pages.xsl new file mode 100644 index 0000000..7de4b4b --- /dev/null +++ b/template/datasource/pages.xsl @@ -0,0 +1,52 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + /usr/bin/markdown + + + + + + + + + + + + + + diff --git a/template/master.xsl b/template/master.xsl deleted file mode 100644 index e2b77b4..0000000 --- a/template/master.xsl +++ /dev/null @@ -1,64 +0,0 @@ - - - - - - - - - - - - - - <xsl:call-template name="title-text"/> - - - - - -
-
- -
- -
- - -
-
- - -
- -
- diff --git a/template/output/master.xsl b/template/output/master.xsl new file mode 100644 index 0000000..e2b77b4 --- /dev/null +++ b/template/output/master.xsl @@ -0,0 +1,64 @@ + + + + + + + + + + + + + + <xsl:call-template name="title-text"/> + + + + + +
+
+ +
+ +
+ + +
+
+ + +
+ +
+ diff --git a/template/output/page.xsl b/template/output/page.xsl new file mode 100644 index 0000000..a271e4a --- /dev/null +++ b/template/output/page.xsl @@ -0,0 +1,23 @@ + + + + + + + + @ /home/adrian + + + +
+ +
+
+ +
diff --git a/template/page.xsl b/template/page.xsl deleted file mode 100644 index a271e4a..0000000 --- a/template/page.xsl +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - - - @ /home/adrian - - - -
- -
-
- -
-- cgit v1.2.3