[WM] Basedir for webmake project
Oliver Strutynski
olistrut.gmx.net
Wed Nov 20 13:49:02 GMT 2002
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I prefer to keep content files and generated output in seperate directories,
so currently my webmake project dir structure looks like this:
./
./simple.wmk
./templates
[ all content files go here and in subdirs ]
./out
[ generated output goes here and in subdirs ]
To achieve that, in my webmake file I search for content files using
<contents src="templates/" name=".../*.html" listname="all_files" />
(omitted the skip param here)
I generate output using
<for name=pg values="${all_files}">
<out name="${pg}" file="out/${pg}">
${page_template}
</out>
</for>
That successfully writes all output files to ./out. I ahve a problem however
with relative references as $(TOP/) points to ./ instead of ./out. I tried
various combinations of the contents/out tags and the -d command line
parameter, but could not achieve the desired effect. Any way to do this? I
would really prefer not to throw content and output files in the same
directory tree.
Thanks, Oliver
- --
_____________________________________________________________________
Oliver Strutynski oliver.strutynski at in.tum.de
olistrut at gmx.net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org
iD8DBQE93AKbuUAlUEFqtKYRApZ5AKDEQAhJewaXGZzwmL9rZW/zqr40qACguT/z
iG0LM9tiO1f40+5QYEH3+qY=
=3ZXG
-----END PGP SIGNATURE-----
More information about the Webmake-talk
mailing list