blob: 3c3a426fd1d7faf2e588b97177ef9c1aead83000 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
## Set your variables here.
namespace eval http {
# The directory which files are searched for.
variable srv {/home/aleksei/www/files/}
# hook_namespace refers to a user-created namespace.
# It must have some things such as
# A proc 'main' which is what the server will execute to get information.
# A list $targets which have all the valid targets.
variable hook_namespace {}
namespace eval cache {
variable precache {
{/fonts/}
}
}
namespace eval module {
#variable directory {}
source modules/template.tcl
}
}
## Validate configuration variables.
## Especially file exists content
## Especially validate the existence of necessary components in $content
proc validate {} {
# Two types of rules
# The VARIABLE=value
# For instance, SRV=/ and whatnot
# The @ACTION Etc
# For instance, @MODULE and @PRECACHE
}
|