Sign In/My Account | View Cart  
advertisement

Article:
 Creating XML with Ruby and Builder
Subject: An alternative to Builder
Date: 2007-02-23 12:52:27
From: easco

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/


Previous Message Previous Message   Next Message No Next Message


Sponsored By: