[WM] tearing my hair out with webmake
Eric S. Johansson
esj.harvee.billerica.ma.us
Thu Jun 14 15:05:44 IST 2001
I'm having a really difficult time with webmake. It seems like I can't get
the data to make it to the output files.
Here's what I am trying to do:
Convert my site to a template driven site so I can make changes in a small
number of places and have them replicate appropriately. I'm starting with
basic raw HTML and I'm trying to put a frame around the HTML and generate
the appropriate output file. It's real simple, it's real stupid, and I
can't get it to work. I tried a bunch of the examples but all of them fail
in the exact same way which is that the output never makes it to the
template. If I use simple HTML or textual examples, I get almost correct
HTML (extraneous " /" character sequences appear. But if I use moderately
sophisticated HTML, nothing shows up in the output except the basic
template defined text.
any pointers or clues would be greatly appreciated.
---eric
here are my various datafiles.
---------- index.wmk -------------
<webmake>
<content name=page_template format="text/html">
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>$[this.title]</title>
<META NAME="keywords" CONTENT="Internet Guide Service Inc.">
<META NAME="generator" CONTENT="${WebMake.GeneratorString}">
</head>
<body text="#000000" bgcolor="#FFFFFF" link="#0000FF" vlink="#FF0000"
alink="#000088"><h1>$[this.title]</h1>
<hr>
${body}
<hr>
</body></html>
</content>
<media src="file:images" name=".../*.gif" />
<media src="file:images" name=".../*.png" />
<!-- files in top dir -->
<contents src="raw" name=".../*.html" format="text/html"
listname="all_files" namesubst="s/.html//" />
<for name=out values="${all_files}">
<out file="output/${out}.html" name="${out}">
<{set body="${${out}.html}"}>${page_template}
</out>
</for>
</webmake>
--------------- index.html input -------------------------
<font face="Arial,Helvetica">Internet Guide Service can address all
your challenges from developing strategic approaches for using the Internet
more effectively to helping you to find the right Internet security
systems.
Internet Guide Service offers sound counsel, with the ability to assist
both in the formulation of your Internet strategy and tactical implementations
to realize your strategic goals.</font>
<p><font face="Arial,Helvetica">With Internet Guide Service's in-depth
knowledge of cutting edge solutions based on the latest technology trends,
as well as its familiarity with traditional methodologies and approaches,
Internet Guide Service is uniquely positioned to find the right solution
for your business.</font>
<p><font face="Arial,Helvetica">A network design services provider for
all your Internet needs, Internet Guide offers strategic planning,
implementations,
training and onsite services for your company's internet, intranet, extranet
and worldwide web implementations.</font>
<p><font face="Arial,Helvetica">For more information, feel free to contact
us:</font>
<p><font face="Arial,Helvetica">email: <a
href="mailto:esj at inguide.com">esj at inguide.com</a></font>
<p><font face="Arial,Helvetica">Internet Guide Service Inc.</font>
<br><font face="Arial,Helvetica">90 Stony Brook Road</font>
<br><font face="Arial,Helvetica">Westford MA 01886</font>
<p><font face="Arial,Helvetica">Tel: 978-392-3650</font>
<br><font face="Arial,Helvetica">Fax: 978-392-5878</font>
--------------- index.html output ------------------------
more output/index.html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>
(Untitled)
</title>
<meta name="keywords" content="Internet Guide Service Inc." />
<meta name="generator" content="WebMake/2.1" />
</head>
<body text="#000000" bgcolor="#FFFFFF" link="#0000FF" vlink="#FF0000"
alink="#000088">
<h1>(Untitled)</h1><hr />
<hr />
</body>
</html>
-------------- output from the run -----------------------
[esj at harvee site]$ webmake -F -L 3
debug: set "WebMake.GeneratorString" (unmapped)
debug: set "WebMake.Version" (unmapped)
debug: set "WebMake.Who" (unmapped)
debug: adding content "page_template"
debug: <media>: src=file:images
debug: adding URL "igs90x-1.gif" = images/igs90x-1.gif
debug: ${igs90x-1.gif}: add ref from url images/igs90x-1.gif
debug: using site cache:
/home/esj/.webmake/home_esj_inguide_site_index/cache.db
debug: cannot do db ownership security check on this platform
debug: opened site cache:
/home/esj/.webmake/home_esj_inguide_site_index/cache.db
debug: caching metadata 'igs90x-1.gif.url' = 'images/igs90x-1.gif'
debug: <media>: src=file:images
debug: adding URL "IGS.png" = images/IGS.png
debug: ${IGS.png}: add ref from url images/IGS.png
debug: caching metadata 'IGS.png.url' = 'images/IGS.png'
debug: adding URL "igs-crop.png" = images/igs-crop.png
debug: ${igs-crop.png}: add ref from url images/igs-crop.png
debug: caching metadata 'igs-crop.png.url' = 'images/igs-crop.png'
debug: adding URL "igs200.png" = images/igs200.png
debug: ${igs200.png}: add ref from url images/igs200.png
debug: caching metadata 'igs200.png.url' = 'images/igs200.png'
debug: adding URL "igs90x-1.png" = images/igs90x-1.png
debug: ${igs90x-1.png}: add ref from url images/igs90x-1.png
debug: caching metadata 'igs90x-1.png.url' = 'images/igs90x-1.png'
debug: adding URL "igs90x.png" = images/igs90x.png
debug: ${igs90x.png}: add ref from url images/igs90x.png
debug: caching metadata 'igs90x.png.url' = 'images/igs90x.png'
debug: <contents>: src=file:raw
debug: adding content "index" (deferred opening)
debug: set "all_files" (unmapped)
debug: dependency: all_files: [ignored as a dependency]
debug: for tag evaluated: "
<out file="output/index.html" name="index">
<{set body="${index.html}"}>${page_template}
</out>
"
debug: adding content "OUT:index"
debug: adding URL "index" = output/index.html
debug: clearing "this.*" metadata for output/index.html
debug: dependency: OUT:index: index.wmk
debug: ${OUT:index}: add ref from url output/index.html
debug: caching metadata 'OUT:index.url' = 'output/index.html'
debug: set "body" (unmapped)
debug: dependency: page_template: index.wmk
debug: ${page_template}: add ref from url output/index.html
debug: caching metadata 'page_template.url' = 'output/index.html'
debug: set "__MainContentName" (unmapped)
debug: dependency: WebMake.GeneratorString: [ignored as a dependency]
debug: ${WebMake.GeneratorString}: add ref from url output/index.html
debug: caching metadata 'WebMake.GeneratorString.url' = 'output/index.html'
debug: dependency: body: [ignored as a dependency]
debug: ${body}: add ref from url output/index.html
debug: caching metadata 'body.url' = 'output/index.html'
debug: output/index.html depends on file:raw/index.html (4 secs old,
previous: 992475962)
debug: loading content "index" for meta tag $[index.html]
debug: updating last used on ${index}: 0
webmake: no value defined for metadata $[index.html] in "body".
webmake: making: output/index.html
debug: Renaming in new file: output/index.html.new -> output/index.html
debug: closed site cache:
/home/esj/.webmake/home_esj_inguide_site_index/cache.db
More information about the Webmake-talk
mailing list