Politics, Programming and Possibilities
20 Jul
Following up on my earlier post about Rails deployment (it can still be a pain), I’ve made my first little Ruby CMS using eRuby (i.e. Ruby without Rails). The idea is simple: Google has a wonderful word processor that clients can use to edit web pages. Why not harness that ability for simple web pages that need just a little bit of content editing here and there?
The GetDoc class uses hpricot to parse and cache a public Google document, and then show the result wherever is needed in the web page. Here is a sample .rhtml file from the project. The source code is available at github:
Sample GetDoc Page
Sample GetDoc Page
Google Doc
Blog Post
Note that it is also possible (as demonstrated above) to customize GetDoc for blogs or other sources of HTML data. What a wonderful web!
Leave a reply