Re: [mongrel2] Config files - ini format
- From:
- Zed A. Shaw
- Date:
- 2010-10-10 @ 08:47
On Sun, Oct 10, 2010 at 12:41:38AM +0100, Zeke Rondel wrote:
> Hi everybody!
>
> + But, why create a DSL when exist the INI format?
> + What advantage have to use a config system based in SQL storing
> which needs specialised tools to edit, as opposed to something in a
> plain ext format, which you can edit by hand if need be (like in
> linux)?
This:
http://sheddingbikes.com/posts/1286700843.html
--
Zed A. Shaw
http://zedshaw.com/
Re: [mongrel2] Config files - ini format
- From:
- joshua simmons
- Date:
- 2010-10-09 @ 23:49
The sqlite config files are generated from some other mechanism, they're
never created by hand. Mongrel2 ships with a config file parser that uses a
python-esque description format.
If you wanted you could make a config file generator that creates configs
from .ini files, in any language that has sqlite bindings.
The advantage is in the flexibility. For example here's a config generator I
whipped up written in Lua that reads a Lua description.
http://gist.github.com/578726
To repeat:
You do NOT have to use sqlite as an end user. It's an implementation detail
that allows greater flexibility for users with advanced needs.
On Sun, Oct 10, 2010 at 10:41 AM, Zeke Rondel <zeke@mailup.net> wrote:
> Hi everybody!
>
> I've read about config files that: "the proposal is to create a DSL in a
> few languages to use as config files, and maybe a converter from Nginx
> or Apache."
>
> + But, why create a DSL when exist the INI format?
>
> + What advantage have to use a config system based in SQL storing which
> needs
> specialised tools to edit, as opposed to something in a plain ext
> format, which you can
> edit by hand if need be (like in linux)?
>
> --
> http://www.fastmail.fm - IMAP accessible web-mail
>
>