This commit is contained in:
2024-11-09 10:22:21 +01:00
parent ed6a1fb612
commit 02557ee6bc
13 changed files with 28 additions and 18 deletions
+20
View File
@@ -0,0 +1,20 @@
[% PROCESS variables.tt -%]
[% parts = 0 -%]
[% INCLUDE header.tt -%]
\begin{document}
[% INCLUDE head.tt %]
[% USE song_choices = datafile("${config_dir}/song_choices.csv", delim='|') %]
[% FOREACH song = song_choices %]
[% template = song.template == '' ? "song_template.tt" : song.template -%]
[% INCLUDE "$template"
purpose = song.purpose
content = song.content
variables = song.variables ? "${song.variables}/assignments.tt" : ''
%]
[% END %]
[% INCLUDE footer.tt %]
\end{document}