Is there a way to automatically make a makefile from a template toolkit template?

Posted by Smack my batch up on Stack Overflow See other posts from Stack Overflow or by Smack my batch up
Published on 2010-03-23T03:32:58Z Indexed on 2010/03/23 3:41 UTC
Read the original article Hit count: 378

Filed under:
|
|

My static web pages are built from a huge bunch of templates which are inter-included using Template Toolkit's "import" and "include", so page.html looks like this:

[% INCLUDE top %]
[% IMPORT middle %]

Then top might have even more files included.

I have very many of these files, and they have to be run through to create the web pages in various languages (English, French, etc., not computer languages). This is a very complicated process and when one file is updated I would like to be able to automatically remake only the necessary files, using a makefile or something similar.

Are there any tools which can parse template toolkit templates and create a dependency list for use in a makefile?

Or are there better ways to automate this process?

© Stack Overflow or respective owner

Related posts about perl

Related posts about template-toolkit