     #    ----------------------------
     #    
     app.get "/error/:error", (req, res) ->
-      res.render "error",
-        error: req.param.error
-        config: config
-        request: req+      res.render "error"
    #    ----------------------------
    #    
    app.get "/blog/tag/:name", (req, res) ->
      check = 0
      categories = undefined
      tags = undefined
      entries = undefined
      eventflow = new eventEmitter()
      blog.getCategories (err, cat) ->
        categories = cat
        check++
        eventflow.emit "render"  if check is 3

      blog.getEntry
        "tags.name": req.params.name
      , (err, ent) ->
        entries = ent
        check++
        eventflow.emit "render"  if check is 3

      blog.getTags (err, tag) ->
        tags = tag
        check++
        eventflow.emit "render"  if check is 3

      eventflow.on "render", ->
        res.render "blog",
          entries: entries
          categories: categories
          tags: tags
          config: config
          request: req
    
    #
    #     `Get posts by category`
    #    ----------------------------
    #    
    app.get "/blog/category/:name", (req, res) ->
      check = 0
      categories = undefined
      tags = undefined
      entries = undefined
      eventflow = new eventEmitter()
      blog.getCategories (err, cat) ->
        categories = cat
        check++
        eventflow.emit "render"  if check is 3

      blog.getEntry
        category: req.params.name
      , (err, ent) ->
        entries = ent
        check++
        eventflow.emit "render"  if check is 3

      blog.getTags (err, tag) ->
        tags = tag
        check++
        eventflow.emit "render"  if check is 3

      eventflow.on "render", ->
        res.render "blog",
          entries: entries
          categories: categories
          tags: tags
          config: config
          request: req

  site: (app) ->
    

    #    ----------------------------
    #    
    app.get "/blog", (req, res) ->
      res.render "blog",

    #
    #     `Get pagination blog posts`
