From: James Edward Gray II Date: 2005-06-30T12:21:27+09:00 Subject: Re: Can you use Erb outside of Apache? 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("
foo: <%= @foo %>
") > erb.run > > result: > >
foo: Hello World!
> > 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