Aredridel
1/20/2005 7:26:00 PM
On Fri, 21 Jan 2005 03:35:59 +0900, itsme213 <itsme213@hotmail.com> wrote:
> I have a web of static pages, and would like to allow adding comments at the
> ends of any of those pages (and display with those comments). Not
> (currently) on Rails or any such framework.
>
> Any suggestions on simple ways (preferably Ruby-based) to do this? Or where
> would be a good place to start looking?
>
Iff the pages are XHTML, it should be really easy to parse them with
REXML, add what you want, and dump them back out again, all with a
script. I'd search to the end of <body>, or some other easy to define
tag (perhaps right after an <hr> with id='postsgohere', even).
The script to do that would trvially be about 20 lines long; perhaps a
bit more with aggressive error checking.
Ari