What are the advantages of using erlang for the config file? Scriptability?
thanks, Marcello 2011/4/6 Benoit Chesneau <[email protected]>: > On Wed, Apr 6, 2011 at 1:10 PM, Hendrik Jan van Meerveld > <[email protected]> wrote: >> Hi Benoît, >> >> Thanks for working on improving couchapp which is allready great. >> >> Would an Erlang config file be readable for a non-Erlang person like me? >> What would it look like? >> > > Here is a snippet of current work (not public yet): > > % log level > {verbose_level, 1}. > > % always check app on sent > {always_check, true}. > > % dbs urls > {push_env, [ > % one db push > {"name", "url", [Options]}, > % multiples db push > {"name", [{url option}, {url, options}]} > ]}. > > % hooks > {pre_hooks, [{push, "path/to/shell'}}}. > {post_hooks, [{push, "path/to/shell'}}}. > > > I think it's enough simple to be used by anyone, isn't it? > > - benoît >
