[WM] help: <content name= src= format= > problem...

Dirk Husemann dirk at d2h.net
Sun Jan 4 18:44:01 GMT 2004


Hi,

I'm having no luck with the <content src=...> construct: this is is the 
webmake file I'm using

<webmake>
    <content name="a-2003.txt" src="a/2003.etxt" format="text/et"></content>

    <!-- basic page template: header and body -->
    <template name="page_template">
        <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
            <html>
                    <head>
                        <title>$[this.title]</title>
                    </head>
                   <body bgcolor=#ffffff>
                ${${WebMake.OutName}.txt}
                   </body>
        </html>
         </template>

    <!-- generate output -->
    <out name="a-2003" file="a/2003.html"> ${page_template} </out>
</webmake>

I've got an "a" directory containing "2003.etxt":

h2{test}

a **strong** word.

reading the documentation I'd expect to get "a/2003.html" with the 
transformed 2003.etxt file inside the <body> construct, yet all I get is:

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
  <head>
    <title>
      (Untitled)
    </title>
  </head>
  <body bgcolor="#ffffff">
   
  </body>
</html>

If I include the content of "a/2003.etxt" inside the <content 
...></content> construct it works as expected...any idea what I'm doing 
wrong?

    cheers,
    dirk

-- 
Dr Dirk Husemann, Krebsbachweg 4, CH-8134 Adliswil, Switzerland
Phone: +41 1 771 21 81                      Email: dirk at d2h.net
PGP public key: http://d2h.net/dirk/PGP
PGP finger print: BA7F B471 CC7E 5C97 4909  9B1B 2941 18AF 9413 523E
This email is only authentic if it is electronically signed.

Attached to this email is an electronic signature attachment. You can
ignore it if your email program does not know how to verify such a 
signature. If you'd like to learn more about this topic, www.gnupg.org
is a good starting point.




More information about the Webmake-talk mailing list