From: Aredridel Date: 2005-01-21T04:25:58+09:00 Subject: Re: Add comments to static web pages ? On Fri, 21 Jan 2005 03:35:59 +0900, itsme213 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 , or some other easy to define tag (perhaps right after an
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