Hi Jiri,
On Wed, Sep 25, 2013 at 5:31 PM, Jiří Sedláček
<
yirie.se...@gmail.com> wrote:
> Hi,
>
> I would like the config bellow to work :-) The problem/feature is that $Dir
> does not get replaced because it is under "root" key. So far I have managed
> to start several instances of zerogw on single machine using different
> variables (Port). This might make me generate a separate config file for
> every zerogw instance. I would like to avoid that.
>
Unfortunately "$var" substitutions currently work for string and int
types only (And file and dir are separate types in coyaml). However in
your case you may use yamlish "*Dir" that works for any type
(including lists and mappings) with the limitation that you can't
substitute part of the string. If that would not work for you, let me
know, the former issue should be easy to fix (but backwards
compatibility might be a problem)
--
Paul