     else
       n + ' ' + str + 's'
 
-  markdown: (s) ->
-    markdown.toHTML s
+  escapeURL: require('querystring').escape
+  markdown: require('markdown').toHTML
 
   gravatar: (p, s) ->
     "<img src=\"http://www.gravatar.com/avatar/#{p.emailHash}?s=#{s || 40}&d=monsterid\" />"

    throw e if e.errno != 2
    @next()

markdown = require 'markdown'
app.helpers {
  pluralize: (n, str) ->
    if n == 1

      @render 'login.html.haml'

get '/logout', ->
  @logout => @redirect(@req.param('return_to') || '/')

# reset password
post '/reset_password', ->
