[% PROCESS purpose_processing.tt; IF variables; PROCESS "$variables"; END; -%] \song{[% purpose_print ? purpose_print : purpose %]}{[% song_title -%]}{ [% before_song -%] \begin{samepage} [% IF scores -%] [% IF scores.gregorian AND (gregorian OR NOT scores.congregation) -%] [% IF NOT gregorian -%] \textbf{\LARGE{Activate gregorian}} [% ELSE -%] \gregorioscore{../library/[% scores.gregorian %]} [% END -%] [% ELSE -%] \lilypondfile{[% IF parts; IF parts == 'band'; IF scores.leadsheet; GET "../library/${scores.leadsheet}"; ELSE; GET "../library/${scores.SATB}"; END; ELSIF parts == 'SATB'; IF scores.SATB; GET "../library/${scores.SATB}"; ELSE; GET "../library/${scores.leadsheet}"; END; END; ELSE; GET "../library/${scores.congregation}"; END; %]} [% END -%] [% ELSIF lyrics -%] [% lyrics %] [% END -%] [% IF credits -%] \leavevmode\\* [% FOREACH key = credits.keys -%] \[% key %]{[% credits.$key %]} [% END -%] [% END -%] \end{samepage} [% content -%] [% IF (meditation && meditations) || (parts && meditation) -%] \leavevmode\par\smallskip [% meditation %] [% END -%] [% IF after_song -%] \leavevmode\par\smallskip [% after_song %] [% END -%] }