class Hoe::ManualGen::ErbFilter

An ERB filter.

Public Instance Methods

process( source, page, metadata ) click to toggle source

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

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