Hi,

In message "calling eruby from code?"
    on 03/07/07, Xavier Noria <fxn / hashref.com> writes:

|I've found documentation for running eruby(1) from the command line and 
|for configuring Apache to handle eruby templates. Do you know how to 
|process templates from within Ruby code?

You can use ERB, pure Ruby implementation of eRuby.

  require 'erb'

  src = "<HTML><HEAD>...."
  print ERB.new(src).run

ERB is bundled with 1.8.0

There are other template systems registered in RAA.  Go look
http://raa.ruby-lang.org/
							matz.