(% variables %)
{
"languages": {"description": {"en": "List of languages used by songs", "fr": "Liste des langues utilisées par les chansons"},
              "default": {"en": "english", "fr": "french"}
           },
"lang": {"description": {"en": "Language", "fr": "Langue"},
         "default": {"en": "english", "fr": "french"}
      }
}
(% endvariables %)

(* extends "layout.tex" *)

(* block songbookpreambule *)
   (( super() ))


   (* for lang in songlist.languages() *)
   \PassOptionsToPackage{((lang))}{babel}
   (* endfor *)
   \usepackage[((lang))]{babel}
   \lang{((lang))}

   \graphicspath{{((datadir))/img/}}
(* endblock *)

(* block songs *)
   \phantomsection
   \addcontentsline{toc}{section}{\songlistname}

   \begin{songs}{((indexes|default('')))}
      (* for song in songlist.songs *)
      \input{((song.path))}
      (* endfor *)
   \end{songs}
(* endblock *)
