# File libglade/sample/custom.rb, line 25
  def initialize(path)
    @glade = GladeXML.new(path) {|handler| method(handler)}

    htmldoc = @glade["custom1"].document
    htmldoc.open_stream('text/html')
    htmldoc.write_stream('<html><body><h1>TEST 2</h1></body></html>')
    htmldoc.close_stream
  end