|
@ -123,8 +123,8 @@ class TexRenderer(object): |
|
|
templates = self.get_templates(self.template) |
|
|
templates = self.get_templates(self.template) |
|
|
templates |= set([self.template.name]) |
|
|
templates |= set([self.template.name]) |
|
|
variables = {} |
|
|
variables = {} |
|
|
regex = re.compile(r'\(% variables %\)\n(?P<variables>.*)' |
|
|
regex = re.compile(r'\(* variables *\)\n(?P<variables>.*)' |
|
|
'\(% endvariables %\)', re.DOTALL) |
|
|
'\(* endvariables *\)', re.DOTALL) |
|
|
for template_name in templates: |
|
|
for template_name in templates: |
|
|
filename = self.texenv.get_template(template_name).filename |
|
|
filename = self.texenv.get_template(template_name).filename |
|
|
with open(filename, 'r') as template_file: |
|
|
with open(filename, 'r') as template_file: |
|
|