 
     cliUtils.forEachFileDeep IN_DIR, (path, stat) ->
         if /\..*ml$/.test(path) and not Document._files[path]
+            mainPaths[path] = true
             parseFile path
     , (err) ->
         if err

        return

    parseFile = (path) ->
        html = fs.readFileSync path, 'utf-8'
        file = Document.fromHTML path, html
        Document.parse file
        file

    saveView = (name, view, callback) ->


    styles {windowStyle: null, styles: {}, queries: app.styleQueries}
    utils.clear Document._files
    mainPaths = Object.create null

    Document.onError onErrorListener = (path) ->
        mainPaths[path] = true
        parseFile path

    Document.onBeforeParse onBeforeParseListener = (file) ->
        if mainPaths[file.path]
            Document.Style.applyStyleQueriesInDocument file
        return

    Document.onParse onParseListener = (file) ->
