3. RHTML

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.

Table A.4. RHTML Functions

TypeNameArgs
method compile() 2
method eval() 2


compile()

compile() processes an RHTML file and returns a string of text comprised of Ruby code intended to be executed by Kernel::eval().

Arguments

eval()

eval() processes a string of RHTML text and returns a string of text comprised of Ruby code that can be executed by Kernel::eval().

Arguments