Class: Hoe::ManualGen::ErbFilter

Inherits:
PageFilter
  • Object
show all
Defined in:
lib/hoe/manualgen.rb

Overview

An ERB filter.

Instance Method Summary collapse

Instance Method Details

#process(source, page, metadata) ⇒ Object

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



546
547
548
549
550
# File 'lib/hoe/manualgen.rb', line 546

def process( source, page,  )
	template_name = page.sourcefile.basename
	template = ERB.new( source )
	return template.result( binding() )
end