 all = undefined
 
 #递归创建页面方法
-forPage = (callback) ->
+forPage = () ->
   views = path.join(__dirname, '../views')
   dirList = fs.readdirSync views
   dirList.forEach (item) ->

  res.end html

# 通过map实现每个页面渲染func的生成
compileRenderService = ->
  done = 0
  all = 0
  for name of pages

        sendPage res, html
        return
      done++
      console.log '\n* re compile jade views' if done >= all

forPage()

module.exports = render
