NAME

HTML::ERuby - ERuby processor for Perl.

SYNOPSIS

use HTML::ERuby;
my $compiler = HTML::ERuby->new;
my $result = $compiler->compile(filename => './foo.rhtml');
print $result;

DESCRIPTION

HTML::ERuby is a ERuby processor written in Perl.

parse ERuby document by Perl and evaluate by Ruby.

METHODS

$compiler = HTML::ERuby->new

constructs HTML::ERuby object.

$result = $compiler->compile(\%option)

compile ERuby document and return result. you can specify ERuby document as filename, scalarref or arrayref.

$result = $compiler->compile(filename => $filename);

$result = $compiler->compile(scalarref => \$rhtml);

$result = $compiler->compile(arrayref => \@rhtml);

CAVEATS

this module is experimental.

this module internal, using Inline::Ruby. so, it will create a '_Inline' directory in your current directory. but, you can specify it in the environment variable PERL_INLINE_DIRECTORY.

See the Inline manpage for details.

AUTHOR

Author <ikebe@edge.co.jp>

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

SEE ALSO

Inline Inline::Ruby

http://www2a.biglobe.ne.jp/~seki/ruby/erb.html

http://www.modruby.net/