Hoe::ManualGen::

ErbFilter

class
Superclass
Hoe::ManualGen::PageFilter

An ERB filter.

Public Instance Methods

anchor
process( source, page, metadata )

Process the given source as ERB and return the resulting HTML fragment.

# File lib/hoe/manualgen.rb, line 545
def process( source, page, metadata )
        template_name = page.sourcefile.basename
        template = ERB.new( source )
        return template.result( binding() )
end