Skip to content
Newer
Older
100644 27 lines (19 sloc) 740 Bytes
bd48218 @devinus Change project description
authored
1 Confit - An Erlang configuration preserver
2 ==========================================
6a97fb1 @devinus Initial commit
authored
3
4 Confit allows you to parse and store configuration values for your
5 applications to use during runtime.
6
7 Usage
8 -----
9
10 ```erlang
11 confit:start_link(foo, "foo.config"),
12 Username = confit:get(foo, database, username)
13 ```
14
15 ### Parsing other configuration formats
16
17 Create a module to parse your configuration format and make sure it exports
18 a function `parse_file/1` that returns `{ok, Proplist}`. The `confit_parser`
19 behaviour specifies the interface. See `confit_term_parser.erl`.
20
21 For example, to use [Zucchini](https://github.com/devinus/zucchini):
22
23 ```erlang
24 confit:start_link(foo, zucchini, "foo.ini"),
25 Username = confit:get(foo, database, username)
26 ```
Something went wrong with that request. Please try again.