 formatDocs = ( docs ) ->
   json =  JSON.stringify docs, null, "  "
   """
-  /* Control member documentation generated from QuickUI control source files. */
+  /* Control documentation generated from QuickUI control source files. */
   var controlDocumentation = #{json};
   """
 

    extractor = extractors[ extension ]
    if extractor?
      source = fs.readFileSync filePath, "utf8"
      { className: className, comments: comments } = extractor.extract source
      if className? and comments?
        docs[ className ] = comments
  docs



###
Generate documenation for QuickUI controls.

This scrapes CoffeeScript or QuickUI markup files to extract the following:
* Class name
* Base class name
* Other control classes instantiated (or otherwise used) by this class.
* Public properties/methods and their associated comments.

This tool can be run directly via node, or invoked as a Grunt task.
###

fs = require "fs"
