From e872033543129071469a0b100c0a36c18a6b519b Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Thu, 17 Jul 2014 21:18:25 +0200 Subject: Implemented basic page compilation facilities * templates in 'template/compiler' are automatically generated ** required datasources are extracted and merged automatically ** 'pages.xsl' is currently a dummy compiler * moved context helper templates into context stylesheet * added compiler directory to meta DOM * modified generator and transformer helper templates to enable usage of DOM as input --- generate.xsl | 80 +++++++++++++++++++++++++++---------------- meta.xml | 1 + template/compiler/pages.xsl | 25 ++++++++++++++ template/datasource/pages.xsl | 8 +---- utility/context.xsl | 49 ++++++++++++++++++++++++++ utility/datasource.xsl | 2 +- utility/generator.xsl | 4 +-- utility/transformer.xsl | 2 +- 8 files changed, 131 insertions(+), 40 deletions(-) create mode 100644 template/compiler/pages.xsl create mode 100644 utility/context.xsl diff --git a/generate.xsl b/generate.xsl index 65a49f3..e0e8121 100644 --- a/generate.xsl +++ b/generate.xsl @@ -14,55 +14,77 @@ indent="yes" /> - - + + - - - - + + - - - - - - - - + + + + - - + + + + + + + + + + + + + + + - - + + + + + + + + + - - - - + + + + + - - + - [source.xsl] + - - - - + + + + + + + + + diff --git a/meta.xml b/meta.xml index 0c0e67c..3dca27c 100644 --- a/meta.xml +++ b/meta.xml @@ -9,6 +9,7 @@ /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/compiler /home/common/projects/dev/static_site_generator/template/output diff --git a/template/compiler/pages.xsl b/template/compiler/pages.xsl new file mode 100644 index 0000000..f4ada83 --- /dev/null +++ b/template/compiler/pages.xsl @@ -0,0 +1,25 @@ + + + + + + + + + + + Compile page: + + + diff --git a/template/datasource/pages.xsl b/template/datasource/pages.xsl index c77513a..5c036c9 100644 --- a/template/datasource/pages.xsl +++ b/template/datasource/pages.xsl @@ -10,13 +10,7 @@ - - - - - - - + diff --git a/utility/context.xsl b/utility/context.xsl new file mode 100644 index 0000000..87447bf --- /dev/null +++ b/utility/context.xsl @@ -0,0 +1,49 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/utility/datasource.xsl b/utility/datasource.xsl index 02b37d1..8ce224c 100644 --- a/utility/datasource.xsl +++ b/utility/datasource.xsl @@ -14,7 +14,7 @@ indent="yes" /> - + diff --git a/utility/generator.xsl b/utility/generator.xsl index ca6f0c3..eb65996 100644 --- a/utility/generator.xsl +++ b/utility/generator.xsl @@ -14,8 +14,8 @@ diff --git a/utility/transformer.xsl b/utility/transformer.xsl index 6c85a4e..0812f33 100644 --- a/utility/transformer.xsl +++ b/utility/transformer.xsl @@ -13,7 +13,7 @@ -- cgit v1.2.3