Debian Codegraph @

htdoc/cf_variables.html

raw
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
2 <html>
3 <head>
4 <title>
5 ht://Dig: Configuration file format -- Variable Expansion
6 </title>
7 </head>
8 <body bgcolor="#eef7ff">
9 <h1>
10 Configuration file format -- Variable Expansion
11 </h1>
12 <p>
13 ht://Dig Copyright &copy; 1995-2004 <a href="THANKS.html">The ht://Dig Group</a><br>
14 Please see the file <a href="COPYING">COPYING</a> for
15 license information.
16 </p>
17 <hr size="4" noshade>
18 <p>
19 Attribute values can contain
20 references to other attributes. This is done similarly to how
21 Perl, Bourne shell, and Makefiles use variables. The variables
22 that are referenced will be expanded when the variable is used,
23 not when it is defined. This means that attributes don't have
24 to be defined in the order that they are used.
25 </p>
26 <p>
27 Example attribute reference in an attribute value:
28 </p>
29 <blockquote>
30 database_base: ${database_dir}/htdig
31 </blockquote>
32 <p>
33 or
34 </p>
35 <blockquote>
36 database_base: $database_dir/htdig
37 </blockquote>
38 <p>
39 Many default values use the attribute expansion mechanism to
40 make configuration easier and more generic.
41 </p>
42 <p>
43 In addition to variable expansion, it is also possible to
44 include the contents of a file as the value of an attribute.
45 This is done by putting the filename in backquotes (`).
46 Within the backquotes, variable expansion will still work so
47 that files can be specified relative to some path. The
48 backquotes and the filename will be replaced by the contents
49 of the file if it exists. All whitespace (spaces, tabs,
50 newlines, etc) in the file are condensed to one space before
51 the substitution takes place. The following are some examples
52 of the use of the backquoting scheme:
53 </p>
54 <blockquote>
55 <table>
56 <tr>
57 <td nowrap>
58 start_url: `${common_dir}/starting_points`<br>
59 limit_urls_to: `${common_dir}/limit_list`
60 </td>
61 </tr>
62 </table>
63 </blockquote>
64 <hr size="4" noshade>
65
66 Last modified: $Date: 2004/05/28 13:15:18 $
67
68 </body>
69 </html>