Browse Source

Move songbook templates in a separate folder

pull/211/head
Oliverpool 9 years ago
parent
commit
8c6a60637b
  1. 0
      patacrep/data/templates/songbook/default.tex
  2. 0
      patacrep/data/templates/songbook/layout.tex
  3. 0
      patacrep/data/templates/songbook/patacrep.tex
  4. 0
      patacrep/data/templates/songbook/songs.tex
  5. 2
      patacrep/templates.py

0
patacrep/data/templates/default.tex → patacrep/data/templates/songbook/default.tex

0
patacrep/data/templates/layout.tex → patacrep/data/templates/songbook/layout.tex

0
patacrep/data/templates/patacrep.tex → patacrep/data/templates/songbook/patacrep.tex

0
patacrep/data/templates/songs.tex → patacrep/data/templates/songbook/songs.tex

2
patacrep/templates.py

@ -137,7 +137,7 @@ class TexBookRenderer(Renderer):
# Load templates in filesystem ... # Load templates in filesystem ...
loaders = [ loaders = [
FileSystemLoader(datadir) FileSystemLoader(datadir)
for datadir in files.iter_datadirs(datadirs, 'templates') for datadir in files.iter_datadirs(datadirs, 'templates', 'songbook')
] ]
jinjaenv = Environment( jinjaenv = Environment(
loader=ChoiceLoader(loaders), loader=ChoiceLoader(loaders),

Loading…
Cancel
Save