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.



530
531
532
533
534
# File 'lib/hoe/manualgen.rb', line 530

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