[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [php-weathermap] Include Config Files?



Cook, Garry wrote:
Does php-weathermap allow me to use INCLUDE: for config files, or something similar?
Would love to have a main config with global settings that pulls in regional configs with nodes and links.

It doesn't, no... I did think about adding this, because I always start with the same skeleton file, and having some sort of template would be useful. However, the way the editor works means that it would be undone the first time you edit the file with the editor, as it actually recreates a new config file from the in-memory config. This is why comments disappear too...

It's possible, but not likely, that this will change in the future.

Nothing to stop you using something like M4 to do this though - I think a couple of others on the list do exactly that, to have common config like that.

Howie.

Copyright 1994-2005, by Howard Jones. howie@thingy.com