On Jun 29, 2005, at 8:10 PM, Kyle Heon wrote: > Nevermind. I figured it out. > > code: > > require 'erb' > @foo = "Hello World!" > erb = ERB.new("<pre>foo: <%= @foo %></pre>") > erb.run > > result: > > <pre>foo: Hello World!</pre> > > If there is a better way, I'm still open. As you've seen, ERb is a general templating engine. Use it anywhere you like. If you want to know more, it is documented at http://ruby-doc.org/. James Edward Gray II