 writeStaticFile = (fileName) ->
   outPath = path.join options.out, fileName
   fs.writeFileSync outPath, fs.readFileSync getResourcePath(fileName), 'utf-8'
-  console.log "styledocco: writing #{outPath}"
+  log "styledocco: writing #{outPath}"
 
 writeStaticFile 'docs.css'
 writeStaticFile 'docs.js'

  render = (data) ->
    template = fs.readFileSync templateFile, 'utf-8'
    html = jade.compile(template, filename: templateFile, pretty: on)(data)
    console.log "styledocco: #{source} -> #{path.join options.out, dest}"
    writeFile dest, html
  if langs.isSupported(source) and options.preprocessor isnt 'none'
    # Run source through suitable CSS preprocessor.

  else
    ''

log =
  if options.verbose
    (str) -> console.log str
  else
    () ->

  
# Get sections of matching doc/code blocks.
getSections = (filename) ->
  lang = langs.getLanguage filename
