 					stat: fileStat
 
 				# Create file
-				file = createFunction(data,options)
+				file = createFunction(data, options)
 				filesToLoad.add(file)
 
 				# Next

		database = @getDatabase()
		result = database.findOne(fullPath: data.fullPath)
		unless result
			result = @createDocument(data,options)
			database.add(result)
		result


		# Fetch a layout
		document.on 'getLayout', (opts={},next) ->
			opts.collection = docpad.getCollection('layouts')
			layout = docpad.getFileBySelector(opts.selector, opts)
			next(null, {layout})

		# Render
		document.on 'render', (args...) ->
