Configuration files
lib.config:
a collection of core scripts
user.config:
a collection of customer scripts
Configure a module
you can import any script as a module from:
-
1.A virtual path:
load a virtual path of current website
- <Script Name="Core" Inherit="SyntaxHighlighter/shCore.js">
- </Script>
-
2.A physical path:
load a physical path of current server
- <Script Name="demo1" Inherit="c:/demo1.js"></Script>
-
3.A remoting website path:
if you configrue a remoting website path,ScriptLoad will download the script from
remoting server when script is initialized.
- <Script Name="jquery" Inherit="http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js">
- </Script>
-
4.A fake path:
if you conifgrue a fake path with "none",ScriptLoad will just import it's dependent
scripts
- <Script Name="Javascript" Inherit="none">
- <References>
- <Reference Name="Core"></Reference>
- <Reference Name="BrushJScript"></Reference>
- </References>
- </Script>
|