I have to say that I liked the JSON configuration more. It was pretty easy to read and modify plus JSON already has a special place in the hearts of CouchDB users.
For someone new to couchapp, they will probably already be comfortable with JSON. Erlang tuples and lists will be a bit more obtuse. On Wed, Apr 6, 2011 at 7:33 AM, Benoit Chesneau <[email protected]> wrote: > 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 > -- “The limits of language are the limits of one's world. “ -Ludwig von Wittgenstein
