diff --git a/songbook_core/data/templates/default.tex b/songbook_core/data/templates/default.tex index 49e68f66..e5030413 100644 --- a/songbook_core/data/templates/default.tex +++ b/songbook_core/data/templates/default.tex @@ -19,7 +19,7 @@ %! https://github.com/patacrep/ -(% variables %) +(* variables *) { "title": {"description": {"english": "Title", "french": "Titre"}, "default": {"english": "Guitar songbook", "french": "Recueil de chansons pour guitare"}, @@ -58,7 +58,7 @@ "french": "Options pour traiter les noms d'auteurs (commandes LaTeX authsepword, authignoreword, authbyword)"} } } -(% endvariables %) +(* endvariables *) (* extends "songs.tex" *) (* set indexes = "titleidx,authidx" *) diff --git a/songbook_core/data/templates/layout.tex b/songbook_core/data/templates/layout.tex index f6beb01c..a0d50dcc 100644 --- a/songbook_core/data/templates/layout.tex +++ b/songbook_core/data/templates/layout.tex @@ -26,7 +26,7 @@ %% %% Generated using Songbook -(% variables %) +(* variables *) { "instruments": {"description": {"english": "Instruments", "french": "Instruments"}, "type": "flag", @@ -67,7 +67,7 @@ "default": {"english": "english", "french": "french"} } } -(% endvariables %) +(* endvariables *) (* block documentclass *) \documentclass[((booktype)), diff --git a/songbook_core/data/templates/patacrep.tex b/songbook_core/data/templates/patacrep.tex index 72787ef7..cf98d049 100644 --- a/songbook_core/data/templates/patacrep.tex +++ b/songbook_core/data/templates/patacrep.tex @@ -19,7 +19,7 @@ %! https://github.com/patacrep/ -(% variables %) +(* variables *) { "songnumberbgcolor": {"description": {"english": "Number Shade", "french": "Couleur des numéros"}, "type": "color", @@ -34,7 +34,7 @@ "default": {"default": "D1E4AE"} } } -(% endvariables %) +(* endvariables *) (* extends "default.tex" *) diff --git a/songbook_core/templates.py b/songbook_core/templates.py index 021ebd0c..98284759 100644 --- a/songbook_core/templates.py +++ b/songbook_core/templates.py @@ -2,7 +2,7 @@ # -*- coding: utf-8 -*- """Template for .tex generation settings and utilities""" -from jinja2 import Environment, FileSystemLoader, ChoiceLoader, PackageLoader, TemplateNotFound +from jinja2 import Environment, FileSystemLoader, ChoiceLoader, PackageLoader, TemplateNotFound, nodes from jinja2.ext import Extension from jinja2.meta import find_referenced_templates as find_templates import os