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 _______________________________________________ click mailing list [email protected] https://amsterdam.lcs.mit.edu/mailman/listinfo/click
