 # Requires and Variables
+fs = require 'fs'
 exp = require 'express'
+pass = require 'passport'
 app = exp.createServer()
-pass = require 'passport'
+config = require('./config').config
 Local = require('passport-local').Strategy
-fs = require 'fs'
-config = require('./config').config
 
 # Controllers
 posts = require('./controllers/posts').posts

    if err
      res.send '<b>Error:</b>' + err
    else
      res.send '<b>Success!</b> Settings Saved.'
      delete require.cache[require.resolve('./config')]
      config = require('./config').config

app.get '/admin/delete/:id?', users.check, (req, res) ->
  posts.findById req.params.id, (err, docs) ->

        locals:
          title: config.site.title + ' / ' + docs.title
          article: docs
    else
      next()

