[Click] "include" feature for Click's config files

Bart Braem bart.braem at ua.ac.be
Tue Mar 24 03:23:29 EDT 2009


Hi,

On 18 Mar 2009, at 19:52, Christian Kreibich wrote:

> I was wondering whether there is some sort of include feature provided
> in the configuration language that lets one include config files into
> other config files. For packages, there's require(), but I could not
> locate such a feature for config files. The resulting redundancy in my
> configurations is one of my biggest grievances about Click. Thanks for
> any pointers...


This is almost a FAQ on this mailinglist, but still it is an open  
question...

One thing you can already do is use compound elements to prevent  
redundancy, this works very well and gives you good results.
Another thing you can do is include other files with a C-style  
#include and use the gcc preprocessor, this also works quite well.
Support for including other files in the language itself is currently  
not available. Probably the most logical path to do this is  
implementing an include phase before all parsing of the configure  
file. I guess no one here would object to a patch to do this :-)

Regards,
Bart Braem
-- 
Bart Braem
PATS research group - IBBT
Dept. of Mathematics and Computer Sciences
University of Antwerp
Campus Middelheim, G3.30
Middelheimlaan 1
B-2020 Antwerpen, Belgium
Phone: +32 (0)3 265.32.91
Fax: +32 (0)3 265.37.77
Web: www.pats.ua.ac.be



More information about the click mailing list