README again

This commit is contained in:
thosakwe 2016-09-19 16:33:01 -04:00
parent 20de6cccf5
commit 474e64b54c
2 changed files with 5 additions and 2 deletions

View file

@ -3,7 +3,7 @@ Isomorphic YAML configuration loader for Angel.
# About # About
Any web app needs different configuration for development and production. This plugin will search Any web app needs different configuration for development and production. This plugin will search
for a `config/default.yaml` file. If it is found, configuratiom from it is loaded into `angel.properties`. for a `config/default.yaml` file. If it is found, configuration from it is loaded into `angel.properties`.
Then, it will look for a `config/$ANGEL_ENV` file. (i.e. config/development.yaml). If this found, all of its Then, it will look for a `config/$ANGEL_ENV` file. (i.e. config/development.yaml). If this found, all of its
configuration be loaded, and will override anything loaded from the `default.yaml` file. This allows for your configuration be loaded, and will override anything loaded from the `default.yaml` file. This allows for your
app to work under different conditions without you re-coding anything. :) app to work under different conditions without you re-coding anything. :)
@ -47,3 +47,6 @@ main() async {
print(config("some_key.other.nested_key")); print(config("some_key.other.nested_key"));
} }
``` ```
You can also provide a `dir` or `env` argument, corresponding to
the ones on the server-side.

View file

@ -1,6 +1,6 @@
name: angel_configuration name: angel_configuration
description: Isomorphic YAML configuration loader for Angel. description: Isomorphic YAML configuration loader for Angel.
version: 1.0.1+1 version: 1.0.1+2
author: thosakwe <thosakwe@gmail.com> author: thosakwe <thosakwe@gmail.com>
homepage: https://github.com/angel-dart/angel_configuration homepage: https://github.com/angel-dart/angel_configuration
dependencies: dependencies: