summaryrefslogtreecommitdiff
path: root/configure.tcl
diff options
context:
space:
mode:
authoralekseiplusplus <alekseijeaves@protonmail.com>2024-06-30 14:48:13 +1000
committeralekseiplusplus <alekseijeaves@protonmail.com>2024-06-30 14:48:13 +1000
commitd5cc926ec6c3020d2d51cacc7d14e59c558c4167 (patch)
tree7dbc071ee3ecd6c143426984c19b4c73c11a42c7 /configure.tcl
parenta61f03cfbf62eb006e6bd845694f18d40101d4e8 (diff)
beginning draftwork on modules
Diffstat (limited to 'configure.tcl')
-rwxr-xr-xconfigure.tcl18
1 files changed, 15 insertions, 3 deletions
diff --git a/configure.tcl b/configure.tcl
index 5691763..3c3a426 100755
--- a/configure.tcl
+++ b/configure.tcl
@@ -2,7 +2,7 @@
namespace eval http {
# The directory which files are searched for.
- variable root {/home/aleksei/www/files/}
+ 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.
@@ -14,12 +14,24 @@ namespace eval http {
{/fonts/}
}
}
-}
+ namespace eval module {
+ #variable directory {}
+ source modules/template.tcl
+ }
+}
-## Import HTML Generating Modules
## 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
+}