     console.log '->', filename
     fs.writeFileSync filename, @renderSVG mappings
     filename
-  renderSVG: (mappings) ->
+  renderSVGDOM: (mappings) ->
     doc = domImplementation.createDocument SVGNS, 'svg'
     svg = doc.documentElement
     svg.setAttribute 'xmlns:xlink', XLINKNS

    svg.setAttributeNS SVGNS, 'width', viewBox[2]
    svg.setAttributeNS SVGNS, 'height', viewBox[3]
    svg.setAttributeNS SVGNS, 'preserveAspectRatio', 'xMinYMin meet'
    out = new XMLSerializer().serializeToString doc
    ## Parsing xlink:href in user's SVG fragments, and then serializing,
    ## can lead to these null namespace definitions.  Remove.
    out = out.replace /\sxmlns:xlink=""/g, ''

    console.log 'Not enough filename arguments'
    help()

exports =
  Symbol: Symbol
  Drawing: Drawing
module?.exports ?= exports
window?.svgtiler ?= exports

unless window?
  main()
