 				@server.use express.static @outPath, maxAge: @maxAge
 			else
 				@server.use express.static @outPath
-		
+
 		# Route something
 		@server.get /^\/docpad/, (req,res) ->
 			res.send 'DocPad!'

Date::toISODateString = Date::toIsoDateString = ->
	pad = (n) ->
		if n < 10 then ('0'+n) else n
	
	# Return
	@getUTCFullYear()+'-'+
		pad(@getUTCMonth()+1)+'-'+

	action: (action) ->
		switch action
			when 'skeleton'
				@skeletonAction (err) ->
					throw err  if err
					process.exit()

			when 'generate'
				@generateAction (err) ->
					throw err  if err
					process.exit()

			when 'watch'
				@watchAction (err) ->
					throw err  if err
					console.log 'DocPad is now watching you...'

			when 'server'
				@serverAction (err) ->
					throw err  if err
					console.log 'DocPad is now serving you...'

			else
				@skeletonAction (err) =>
					throw err  if err
