 	@param [Function] cb callback function
 	###
 	generateViews: (engine, app, cb) ->
-		for view in @views
+		for view in @views.FILES
 			sfile = @config "/templates/#{engine.id}#{view}#{engine.extension}"
 			dfile = app.file "#{view}#{engine.extension}"
 			@fs.copySync sfile, dfile

			stream = stream.replace /'layout'/gi, layout
			@fs.writeFileSync config, stream
		@fs.mkdirsSync app.file dir
		for vdir in @viewDirs then @fs.mkdirsSync app.file vdir
		cb()

	###

			id: 'someRedisServer'
			adapter: 'sails-redis'
			version: 'latest'
	views:
		DIRS: [
			'/views/modules' 
			'/views/partials'
			'/views/layouts'
		]
		FILES: [
			'/views/homepage'
			'/views/403'
			'/views/404'
			'/views/500'
			'/views/partials/partial'
			'/views/layouts/master'
		]

	###
	Construct app
