2016-04-22 02:56:21 +00:00
|
|
|
/// Configuration for this Angel instance.
|
|
|
|
library angel.config;
|
|
|
|
|
|
|
|
import 'dart:io';
|
|
|
|
import 'package:angel_configuration/angel_configuration.dart';
|
|
|
|
import 'package:angel_framework/angel_framework.dart';
|
|
|
|
import 'package:angel_mustache/angel_mustache.dart';
|
2016-12-10 18:51:02 +00:00
|
|
|
import 'plugins/plugins.dart' as plugins;
|
2016-04-22 02:56:21 +00:00
|
|
|
|
2016-06-23 21:54:10 +00:00
|
|
|
/// This is a perfect place to include configuration and load plug-ins.
|
2016-04-29 01:22:53 +00:00
|
|
|
configureServer(Angel app) async {
|
2016-06-21 23:39:09 +00:00
|
|
|
await app.configure(loadConfigurationFile());
|
2016-04-29 01:22:53 +00:00
|
|
|
await app.configure(mustache(new Directory('views')));
|
2016-12-10 18:51:02 +00:00
|
|
|
await plugins.configureServer(app);
|
2016-06-23 21:54:10 +00:00
|
|
|
}
|