Commits

shl...@iglu.org.il@cec68495-dca5-4e2b-845c-11fdaaa4f967  committed 224c688

Refactored the template.wml into two include files.

  • Participants
  • Parent commits 3cd5cdc

Comments (0)

Files changed (3)

File lib/driver.wml

+# This file should be the included after the prelude.wml and the rest
+# of the local definitions were set. It does the actual rendering of the page
+# as part of the site common look and feel.
+# 
+
+#include "latemp/latemp-driver.wml"
+#include "shlomif/affiliations.wml"
+
+#include "rest-of-template.wml"
+

File lib/prelude.wml

+# This file should be the first thing to be included by template.wml
+# or a page that tries to over-ride stuff here. By itself it does not render
+# anything, and that is delegated to the "driver.wml".
+# 
+# After including this file and before including "driver.wml", one can 
+# over-ride stuff that driver.wml will later use. 
+
+<define-tag body endtag="required">
+<body*{#BODY_PARAMS#}>
+%body
+</body*>
+</define-tag>
+
+#include "utils.wml"
+#include "paypal.wml"
+
+<define-tag software_patents>1</define-tag>
+#include "latemp/latemp-prelude.wml"
+#include "local-defs.wml"
+

File template.wml

-<define-tag body endtag="required">
-<body*{#BODY_PARAMS#}>
-%body
-</body*>
-</define-tag>
-
-#include "utils.wml"
-#include "paypal.wml"
-
-<define-tag software_patents>1</define-tag>
-#include "latemp/latemp-prelude.wml"
-#include "local-defs.wml"
-#include "latemp/latemp-driver.wml"
-#include "shlomif/affiliations.wml"
-
-#include "rest-of-template.wml"
-
+#include "prelude.wml"
+#include "driver.wml"