   res.end html
 
 # 通过map实现每个页面渲染func的生成
-compileRenderService = ->
+compileRenderService = (pages)->
   done = 0
   all = 0
   for name of pages

      if item.indexOf('.jade') isnt -1
        pages[item.split('.')[0]] = item
    return
  callback() if callback
  console.log pages


# res发送html字符串

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

forPage()

module.exports = render
