9fans archive / 2006 / 05 / 257 prev next
From: Micah Stetson <micah@ste...>
Subject: 3 questions
Date: Mon, 29 May 2006 20:05:47 -0700
> last question. "You're kidding", she says, "you guys just edit raw html?"
> Well, er, I stammer, pretty much. So, how do you folks out there edit your
> web pages? I never even thought about it until now. I just do the html
> dance.
When I have to do this stuff, I sometimes use a little macro
preprocessor I put together for it. I haven't written a man page, but
if you're interested, I'll send it to you. It goes something like
this:
cat >foo.hi <<EOF
<def name="page">
<html>
blah blah blah
</def>
<def name="/page">
blah blah
</html>
</def>
EOF
cat >foo.hm <<EOF
<include file="foo.hi">
<page>
whatever
</page>
EOF
hm foo.hm >foo.html
My wife uses this with sam and mk to manage a small web site.
Micah