[WM] howto include (pod) files?

Merunka, Steffen Steffen.Merunka.COMPAQ.COM
Mon Aug 20 13:35:32 IST 2001


Hi,
I am new to webmake and this is probably a faq or really obvious. 
However, I am stuck here, I have searched the docu and the list archives, to
no avail. so here it goes:

objective: to include several pod files (not related to each other)
formatted to html in a webmake site.

<content name="foo.txt" format="text/pod">
..pod text..
</content>

works fine. However, I have multiple pod files in various locations I want
to include in the site. Therefore, having the raw pod data directly in the
.wmk file is not practical.

It appears that using the <include> tag expects the source file to be in
webmake format, i.e. the pod file itself must contain the webmake <content>
tags and so on. This is equivalent to the examples from the webmake sources
where the sample_stories.inc file is built that way. Here, this is not
practical because I have no control over the pod files. I would like to
define the <content> incl. <metanames> in the .wmk file and then simply suck
in the pod data from the raw file during the webmake run.

I tried placing the <include> tag inside the <content> tag but this does not
work as expected: the include tag appears verbatim on the html page
generated, i.e. it is not interpreted by webmake.

<content name="document5.txt">
<wmmeta name="title">document 5</wmmeta>
<include file="test.pod" />
</content>

then I looked at the <contents> tag. however, as the docu says: "load many
chunks of content from one data source"
so, this seems more appropriate to load for example a number of pod files
from a directory at once and then do some processing on then.

what am I missing here? how would one go about including the pure content
from a single (pod) file, still define the <content> etc. tags in the wmk
file, without touching the pod file? Is it possible? Is it just too obvious
for me to see?

ciao
steffen






More information about the Webmake-talk mailing list