From 8c6a60637b6cbb533e81c9e2a570de0c2b7e42bc Mon Sep 17 00:00:00 2001 From: Oliverpool Date: Wed, 9 Mar 2016 17:25:12 +0100 Subject: [PATCH] Move songbook templates in a separate folder --- patacrep/data/templates/{ => songbook}/default.tex | 0 patacrep/data/templates/{ => songbook}/layout.tex | 0 patacrep/data/templates/{ => songbook}/patacrep.tex | 0 patacrep/data/templates/{ => songbook}/songs.tex | 0 patacrep/templates.py | 2 +- 5 files changed, 1 insertion(+), 1 deletion(-) rename patacrep/data/templates/{ => songbook}/default.tex (100%) rename patacrep/data/templates/{ => songbook}/layout.tex (100%) rename patacrep/data/templates/{ => songbook}/patacrep.tex (100%) rename patacrep/data/templates/{ => songbook}/songs.tex (100%) diff --git a/patacrep/data/templates/default.tex b/patacrep/data/templates/songbook/default.tex similarity index 100% rename from patacrep/data/templates/default.tex rename to patacrep/data/templates/songbook/default.tex diff --git a/patacrep/data/templates/layout.tex b/patacrep/data/templates/songbook/layout.tex similarity index 100% rename from patacrep/data/templates/layout.tex rename to patacrep/data/templates/songbook/layout.tex diff --git a/patacrep/data/templates/patacrep.tex b/patacrep/data/templates/songbook/patacrep.tex similarity index 100% rename from patacrep/data/templates/patacrep.tex rename to patacrep/data/templates/songbook/patacrep.tex diff --git a/patacrep/data/templates/songs.tex b/patacrep/data/templates/songbook/songs.tex similarity index 100% rename from patacrep/data/templates/songs.tex rename to patacrep/data/templates/songbook/songs.tex diff --git a/patacrep/templates.py b/patacrep/templates.py index 90509369..ca6740a1 100644 --- a/patacrep/templates.py +++ b/patacrep/templates.py @@ -137,7 +137,7 @@ class TexBookRenderer(Renderer): # Load templates in filesystem ... loaders = [ FileSystemLoader(datadir) - for datadir in files.iter_datadirs(datadirs, 'templates') + for datadir in files.iter_datadirs(datadirs, 'templates', 'songbook') ] jinjaenv = Environment( loader=ChoiceLoader(loaders),