Csi

About


CSI - Client Side Includes is a library which provides an easy to use system for including other JS files. With CSI, it's easy to spread your program across several files and reuse them in other project as you see fit.

News


070821 ns.tw.domina has been extended by getInnerDimension, make and class_screenDiv. Various documentation fixes.

Benefits

  • Easy to implement
  • Allows for simple reusing of code
  • Error messages point to the correct File and Line
  • Doesn't require you to compile anything
  • Doesn't require you to run the code on a server
  • Requires only minimal changes to your code
  • Cross-Browser compatible

How it works


CSI uses a very simple and effective system... instead of retrieving, parsing and appending files itself, it simply appends script elements pointing to the original files. All included files themselves register with the main CSI instance and provide the code to be executed after all files have loaded (Think of it as a simple event system). After all files have loaded it runs all registered code bottom to top.

Getting started


Using CSI is extremely easy, just have a look at Getting Started to get it running in 6 simple steps.

Standard Libraries


CSI comes with a set of standard libraries to make Browser development a bit less painfull. Right now there's only limited functionality, but it will grow over time.
Just have a look at the Standard Library Reference.

License


CSI and all documentation is Copyrighted by their respective owners and licensed to and by the CSI project under the CC Attribution-ShareAlike 3.0 License.