From: Nicholas Van Weerdenburg Date: 2005-01-21T04:33:46+09:00 Subject: Re: Add comments to static web pages ? Do you want to add anything to the static pages, or do it all magically without touching them? With ruby cgi you could so something like: Replace links like this: http://mysite/page1.html with: http://mysite/cgi-bin/enhancepage.rb?page=page1.html&action="comments" And not have to change the static pages, keeping comments in a file or database keyed on the page name. You could even use mod_rewrite to do this automatically, changing no links on the site. A simple eruby solution would involve changing all the pages from .html to rhtml and use eruby and embedding ruby in the pages. That could be automated with a script to add some ruby code to the bottom of each page to include the comment logic. Nick -- Nicholas Van Weerdenburg 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? > > Thanks. > >