From fe5ba3a18fbd3558855a9c08af7d497f58380258 Mon Sep 17 00:00:00 2001 From: Leopold Fajtak Date: Sun, 24 Nov 2024 09:37:36 +0100 Subject: [PATCH] moved variable declaratios to config --- config/variables.tt | 8 ++++++++ templates/variables.tt | 6 +++++- 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 config/variables.tt diff --git a/config/variables.tt b/config/variables.tt new file mode 100644 index 0000000..f270131 --- /dev/null +++ b/config/variables.tt @@ -0,0 +1,8 @@ +[%# set variables proper, color, title, subtitle, credo, gregorian, small_head, small_footer, lent, meditations -%] +[% + proper = '' + gregorian = 0 + small_head = 0 + small_footer = 0 + meditations = 0 +-%] diff --git a/templates/variables.tt b/templates/variables.tt index fa7c17d..d750fe9 100644 --- a/templates/variables.tt +++ b/templates/variables.tt @@ -11,4 +11,8 @@ config_dir = '../config' library_dir = '../library' -%] -[%# PROCESS propers/per_annum_XIII.tt -%] +[% PROCESS "${config_dir}/variables.tt"; + IF proper != ''; + PROCESS "propers/${proper}.tt"; + END; +-%]