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-07 22:33:19 +00:00
|
|
|
if {$file ni $done} {
|
2011-07-05 18:38:42 +00:00
|
|
|
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
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|