How does ruby-tmpl work?
ruby-tmpl has three main components, but only two that you’ll ever need to worry about. The first is the actual ruby-tmpl library (what the ruby-tmpl developers slave over and work on). The second component to ruby-tmpl are the template files and third is the actual mod_ruby script. The template and script files are the only things you’ll have to work with and develop: ruby-tmpl is maintained by the developers and your only concern with it is to make sure that you stay current with stable versions (subscribe to ruby-tmpl-announce). To use ruby-tmpl, you need to create at least two files: a template file and a script (though multiple scripts can call the same template file). Template files control the presentation of your content. A template file has place holders for content. What the content is varies and this is where the power of ruby-tmpl comes from. As of this writing, there are only two types of data that can be put into a ruby-tmpl template: variables () and files (