[Rest2web-develop] Multiple templates, same content
Brought to you by:
mjfoord
From: Donald J. W. <don...@hp...> - 2006-02-23 00:58:21
|
Hello, I'm attempting to use rest2web to completely redesign our website (hpinkjet.sf.net) to be more easily updated and managed. One requirement that I have is that I need to be able to create 2 separate sets of HTML pages that have a completely different look-and-feel (one for the website and one to be included in our tarball that will eventually be converted to PDF). I currently see no way to pass-in or otherwise externally influence the template that will be used during a run of r2w.py since it is specified statically, with the content, in the restindex. The only way I can see to do this is to copy the first template in place, run r2w with one config file and then overwrite the template file and run r2w again with a second config file (to be able to change the output directory). Is there a more elegant way to accomplish this? Can I make the template programmable/dynamic in some way using the <# #> blocks? Thanks for this great tool, Don |