Completely split up the templating system from the Matrix Spec template code.

The two are now linked together in build.py by specifying the input module.
Updated gendoc.py to specify the right module.
This commit is contained in:
Kegan Dougal 2015-05-26 16:20:15 +01:00
parent 8e1d6899c2
commit 5b31c442f5
11 changed files with 196 additions and 114 deletions

View file

@ -34,7 +34,12 @@ def rst2html(i, o):
def run_through_template(input):
null = open(os.devnull, 'w')
subprocess.check_output(
['python', 'build.py', "-o", "../scripts/tmp", "../scripts/"+input],
[
'python', 'build.py',
"-i", "matrix_templates",
"-o", "../scripts/tmp",
"../scripts/"+input
],
stderr=null,
cwd="../templating",
)