 
 module.exports = (app, mod) ->
 
+  memcached = new Memcached(process.env.MEMCACHED_LOCATIONS ? 'localhost:11211')
   console.log process.env.MEMCACHED_LOCATIONS ? 'localhost:11211'
-  try
-    memcached = new Memcached(process.env.MEMCACHED_LOCATIONS ? 'localhost:11211')
-    console.log 'memcached'
-    console.log memcached
-  catch err
-    console.log err
 
   memcached.flush (err) ->
-    console.log err
   #
   # * Render the template
   # * first look in cache

liquid = require('liquid.coffee')
Memcached = require('memcached')

lifetime = 2592000 # 30 days
#
# * Send the html
# *

        return
      else
        filename = path.join(__dirname, '../views', view)+'.tpl'
        console.log 'FILENAME = '+filename
        fs.readFile filename, 'utf-8', (err, content) ->
          return res.req.next(err) if err
          template = liquid.Template.parse(content)
