def render(template, output = nil)
      result = ERB.new(File.read(template), 0, '-').result(binding)
      if !output.nil?
        File.open(output, "w") do |file|
          file.write(result)
        end
      else
        puts result
      end
    end
def render(template, output = nil)
      result = ERB.new(File.read(template), 0, '-').result(binding)
      if !output.nil?
        File.open(output, "w") do |file|
          file.write(result)
        end
      else
        puts result
      end
    end
Create RUYML data from a YAML hash.
 Underlying hashes will be accessed
 as instances of this class. Other
 types are kept untouched and returned
 as is.
 Renders RUYML data using the given template.
 Rendered data is either written to an optional
 output file path or to stdout.