|
An alternative to Builder which I found particularly useful for my situation was the Ruby "ERB" module.
ERB stands for Embedded Ruby (I think) and is a tool used by Rails to manage HTML documents with Ruby code embedded in them. The nice thing about ERB is that it was installed already in my Ruby distribution so I didn't have to go to the gems to get it.
ERB and Builder are really aimed at two different things, and each can be used in different situations. For my needs, ERB was easier to use than builder. If you need to generate HTML/XHTML from Ruby, you might look into ERB as well.
http://www.ruby-doc.org/stdlib/libdoc/erb/rdoc/
|