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; +-%]