[WM] Conditional webmake
Michael Terry
mike at mterry.name
Fri Mar 5 05:27:55 GMT 2004
Hello. I am trying to do a particular thing in webmake, but have been
unable to. Any help would be appreciated.
I have several <content> pages which describe the bulk of the
information on a page. I also have a generic <content> template that
defines all the HTML header/footer goodness. Now, I want to write
pieces of code in the template that only exist if the <content> page
being output has a metadata element. Here is an example with some fake
pseudo tags, if I'm not being clear:
<content name="exit.txt">
<wmmeta name="title">Leave!</wmmeta>
goodbye
</content>
<content name="index.txt">
<wmmeta name="title">Welcome!</wmmeta>
<wmmeta name="header_image_file">site.png</wmmeta>
hello
</content>
<content name="page_template">
<html><head><title>$[this.title]</title></head><body>
<!-- here's what i wished I could do -->
<if var=$[this.title] value="<img src=\"$[this.title]\">">
${${WebMake.OutName}.txt}
</body></html>
</content>
So, in the above example, index.txt would have the img, but exit.txt
would not. How would I formulate something that would do what my fake
<if> tag does? Or am I just going about this the wrong way? Thanks in
advance.
I am not subscribed to this list, so please CC: me.
-mt
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://amgod.boxhost.net/pipermail/webmake-talk/attachments/20040305/ed20487a/attachment.bin
More information about the Webmake-talk
mailing list