Method: HTMLIndex#to_e

Defined in:
lib/langhelp/langhelp-base.rb

#to_e(out) ⇒ Object

Dump into e-script pre_process -> HTML2TXT -> post_process



420
421
422
423
424
425
426
427
# File 'lib/langhelp/langhelp-base.rb', line 420

def to_e(out)
  find_index unless @index_page
  f = Tempfile.new("lh")
  
  f.puts(pre_process(kconv{ File.read(@index_page) }))
  f.close
  out << post_process(kconv{ `#{conf[:HTML2TXT]} #{f.path}` })
end