The ModRuby RHTML module is an eRuby compatible C extension compiled into
mod_ruby and loaded into the
ModRuby::RHTML namespace. It converts RHTML text
conforming to eRuby into Ruby source code that is capable of being evaluated by
Kernel::eval. The documentation of each method follows.
compile() processes an RHTML file and returns a
string of text comprised of Ruby code intended to be executed by
Kernel::eval().
file: the path of an RHTML file to process.
binding: an optional binding. If no value
is provided the global namespace is used.
eval() processes a string of RHTML text and returns a
string of text comprised of Ruby code that can be executed by
Kernel::eval().
text: a string or RHTML text to process.
binding: an optional binding. If no value
is provided the global namespace is used.