2011-07-01 22:56:53 +00:00
|
|
|
|
|
|
|
if {![exists -proc require]} {
|
2011-07-05 18:38:42 +00:00
|
|
|
proc require {args} {{done {}}} {
|
2011-07-01 22:56:53 +00:00
|
|
|
foreach file $args {
|
2011-07-05 18:38:42 +00:00
|
|
|
if {[lsearch -exact $done $file] == -1} {
|
|
|
|
uplevel source "/mod/var/mongoose/lib/$file"
|
|
|
|
lappend $done $file
|
|
|
|
}
|
2011-07-01 22:56:53 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
proc header {} {
|
|
|
|
uplevel source /mod/var/mongoose/html/lib/header.jim
|
|
|
|
}
|
|
|
|
|
|
|
|
proc footer {} {
|
|
|
|
uplevel source /mod/var/mongoose/html/lib/footer.jim
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|