     console.log 'Not enough filename arguments'
     help()
 
+exports =
+  Symbol: Symbol
+  Drawing: Drawing
+module?.exports ?= exports
+window?.svgtiler ?= exports
+
 unless window?
   main()

`#!/usr/bin/env node
`
path = require 'path'
fs = require 'fs'
xmldom = require 'xmldom'
DOMParser = xmldom.DOMParser
domImplementation = new xmldom.DOMImplementation()
XMLSerializer = xmldom.XMLSerializer
prettyXML = require 'prettify-xml'

SVGNS = 'http://www.w3.org/2000/svg'
XLINKNS = 'http://www.w3.org/1999/xlink'

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