forked from hummypkg/webif
eb0adb8f29
git-svn-id: file:///root/webif/svn/humax/pkg/src/webif/trunk@1172 2a923420-c742-0410-a762-8d5b09965624
34 lines
586 B
Plaintext
34 lines
586 B
Plaintext
|
|
if {![exists -proc require]} {
|
|
proc require {args} {{done {}}} {
|
|
foreach file $args {
|
|
if {$file ni $done} {
|
|
uplevel source "/mod/webif/lib/$file"
|
|
lappend $done $file
|
|
}
|
|
}
|
|
}
|
|
|
|
proc header {} {
|
|
uplevel source /mod/webif/html/lib/header.jim
|
|
}
|
|
|
|
proc footer {} {
|
|
uplevel source /mod/webif/html/lib/footer.jim
|
|
}
|
|
|
|
proc mheader {} {
|
|
uplevel source /mod/webif/html/m/lib/header.jim
|
|
}
|
|
|
|
proc mfooter {} {
|
|
uplevel source /mod/webif/html/m/lib/footer.jim
|
|
}
|
|
|
|
# Replace the built-in jim {file copy} command with one that is
|
|
# largefile safe.
|
|
|
|
require filecopy
|
|
}
|
|
|