[Click] "require(library FOO)" added to Click syntax
Eddie Kohler
kohler at cs.ucla.edu
Sun Jun 6 13:40:37 EDT 2010
Hey,
File inclusion, a frequently-requested feature, has been added to the Click
configuration language syntax. Thanks very much to Christian Kreibich for his
initial patch.
It works like this: Put frequently-used compound elements and such into a
common library file, such as library.click:
======library.click=======
elementclass Whatever { ... };
Store this file with your other Click configurations, or put it in CLICKPATH,
in the "conf/" directory.
Then in your main Click configuration file just say:
======main.click===========
require(library library.click);
w :: Whatever;
Let us know if you have problems.
Eddie
More information about the click
mailing list