       if error?
         contents = null
         lookup = {}
-        block.contentChange = false
         return
 
       # replace old contents


  # tasks that will block the request until completed
  block =
    contentChange: false
    contentsLoad: false
    templatesLoad: false
    viewsLoad: false
    localsLoad: false

  isReady = ->
    ### Returns true if we have no running tasks ###

          return true
      return false
    ignoreInitial: true

  contentWatcher.on 'change', (path) ->

    # ignore if we dont have the tree loaded or it's still loading
    return if not contents? or block.contentsLoad

    # also ignore if we are already working on this file
    # (windows sometimes sends multiple change events for the same file)
    return if block.files[path] is true

    block.files[path] = true

    content = null
    for item in ContentTree.flatten(contents)
