From: Stefan Schmiedl Date: 2003-01-02T22:49:19+09:00 Subject: Re: CGI Lib On Thu, 2 Jan 2003 08:24:24 +0900, Tom Sawyer wrote: > Perhps the "funny html support" should be sperated > into its own requirable module? def xml(element, attributes = {}) content = block_given? ? yield : '' content = content.join('') if content.is_a?(Array) tag = "<" + element + " " attributes.each { |key, value| tag << "#{key}='#{value}' " } tag << "/" if content == '' tag << ">" tag << content << "" if content != '' tag end what module?