contraflows/grisaille — Issue #1: Config API
Author: carl-suster
Created: 2012-02-07 14:00:34+00:00
State: open

Need to have an API for reading and setting configuration. Config can come from different places:

* ENV variables (readonly)
* YAML/JSON files (readonly sometimes)
* database (read-write)

The options should hook into the admin interface to display and allow changes to the options as appropriate.

Distinct sections (can share a db table, perhaps single-class inheritance):

1. words
2. app config

Features:

* scoped, with a default scope defined, and implicit scope reference
* mini DSL
* scopes for words are contexts (home, artworks, ...) roughly corresponding to views or maybe controllers
* scopes for app config are Padrino environments