ruby-tmpl is used for the online and offline creation of HTML, XML, and email documents. Like many other templating languages, ruby-tmpl lets you abstract the presentation from the actual content of a document. However, unlike other templating languages, ruby-tmpl also lets you perform offline processing of documents so that you can have your Web server serve static content created by templates as well as dynamic content. The templating language itself is fully XML-compliant and can safely be embedded in XML documents.
Props and a warning to the SO's out there....
To both Hal Fulton for the book, and Phil Tomson. Ruby makes programming enjoyable again. At my last site, everything was horribly kludged together with Perl. I know good Perl from bad Perl, this was bad Perl (me thinks it was an org problem). Regardless, no matter how burned out the programmer, no one seems to walk away from the language or a book written about Ruby, with anything less than fevored anxiousness and excitement. I must apologize to the significant others of the developers who have read this book, expect many late and excited weekends and nights programming. I'm getting away with this because she's gone to bed and I got up again to work. No point sleeping through an idea... ::grin:: Enjoy. Nice work Hal. -sc
PHP -> eRuby
And for those of you who are PHP fans, check out eRuby. Ruby works extremely well as an embedded language like PHP. One of the big wins with eRuby over PHP is that when you want to add a module to Ruby, you don't have to recompile the interpreter: it's just a module that you require from your script (like Perl).