Commits

Israel Saeta Pérez committed 85575ec

Adjust filepaths in the rendering script and in the templates to account the new folders layout.

  • Participants
  • Parent commits 3d9464c

Comments (0)

Files changed (3)

Templates/alfeizar/LaTeX-2e/en/title.tex

 {\footnotesize
 \copyright\ !!get_current_release_date.year !!get_authors_text\\
 
-#include !!language + '/' !!auxdir + !!get_license(!!thistmpl.language).notice_filename 
+#include !!auxdir + !!get_license(!!thistmpl.language).notice_filename 
 }
 \end{center}
 \vspace{2ex}

Templates/alfeizar/LaTeX-2e/es/title.tex

 {\footnotesize
 \copyright\ !!get_current_release_date.year !!get_authors_text\\
 
-#include !!language + '/' + !!auxdir + !!get_license(!!thistmpl.language).notice_filename 
+#include !!auxdir + !!get_license(!!thistmpl.language).notice_filename 
 }
 \end{center}
 \vspace{2ex}
                         'description': 'Plantilla para libro de Alqua',
                         'language': md['language']}}
 md.update(tmpl_md)
+templates_fpath = 'Templates/%s/%s/%s/' % (md['thistmpl']['name'], \
+                 md['sourceformat'], md['language'])
 
 # add info about the folder containing auxiliar images and texts
-md.update({'auxdir': 'aq-aux/'})
+auxdir = md.update({'auxdir': templates_fpath + 'aq-aux/'})
 
 # all template files use !! as the start token for variables
 compiler_settings = {'cheetahVarStartToken':'!!'}
 # for each template file, render it and write the output to the build folder
 for template_fname in template_fnames:
     # load the template from disk
-    template_fpath = '%s/%s' % (md['language'], template_fname)
+    template_fpath = templates_fpath + template_fname
     tmpl = Template.compile(file(template_fpath).read(), compilerSettings=compiler_settings)
     # render it using the metadata dictionary
     out = tmpl(namespaces=md, filter=EncodeUnicode)