You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
339 B
20 lines
339 B
14 years ago
|
How to make library functions available to manifest, explorer, etc.
|
||
|
|
||
|
Some ideas / background:
|
||
|
|
||
|
- do not have the user to source $__lib/foo if not needed
|
||
|
- have $__cdist_lib for internal stuff (probably referring to core/)
|
||
|
|
||
|
Implementation:
|
||
|
|
||
|
load_lib()
|
||
|
{
|
||
|
. $__cdist_lib/*
|
||
|
}
|
||
|
|
||
|
run_code_from_user()
|
||
|
{
|
||
|
load_lib
|
||
|
. file_from_user
|
||
|
}
|