From: Slawek Figiel Date: Fri, 24 Sep 2021 13:18:32 +0000 (+0200) Subject: [#2080] Extend include path description X-Git-Tag: Kea-2.0.0~61 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fa2d0a67058bc453a8a4f1bdb3114f57b0ec78cb;p=thirdparty%2Fkea.git [#2080] Extend include path description --- diff --git a/doc/sphinx/arm/config.rst b/doc/sphinx/arm/config.rst index 8dbf6a390e..ace8ac9598 100644 --- a/doc/sphinx/arm/config.rst +++ b/doc/sphinx/arm/config.rst @@ -221,17 +221,19 @@ The parser provides the ability to include files. The syntax was chosen to look similar to how Apache includes PHP scripts in HTML code. This particular syntax was chosen to emphasize that the include directive is an additional feature and not a part of JSON syntax. + The inclusion is implemented as a stack of files. You can use the include directive in nested includes. Up to ten nesting levels are supported. This arbitrarily chosen limit is protection against recursive inclusions. -Include directive has a form: +The include directive has the form: :: - + -The *[RELATIVE-PATH]* pattern should replace with a relative path to an including JSON file. +The *[PATH]* pattern should be replaced with an absolute path or a path relative to +the current working directory at the time the Kea process was launched. To include one file from another, use the following syntax: