public
Description: Data Binding Plugin for jQuery
Homepage:
Clone URL: git://github.com/raid-ox/chain.js.git
raid-ox (author)
Sat Oct 18 15:52:30 -0700 2008
commit  7618ea026fae83a4bd9a49c9541d6e10f544ca69
tree    62c380b27cca91ef37b789cdc78de945e5f8b564
parent  8636c7c3bd4f9ee83523eab4cbe663f70f37e4af
name age message
directory bin/ Sat Oct 18 14:51:23 -0700 2008 Version 0.2 Final Revision. See Changelog for d... [raid-ox]
directory build/ Sat Oct 18 15:52:30 -0700 2008 very little bug fix. (linking related) [raid-ox]
directory demo/ Sat Oct 18 14:57:05 -0700 2008 correcting chain-self demo [raid-ox]
directory doc/ Sat Oct 18 14:51:23 -0700 2008 Version 0.2 Final Revision. See Changelog for d... [raid-ox]
directory lib/ Wed Aug 13 16:47:39 -0700 2008 add lib, jquery [raid-ox]
file license.txt Wed Aug 13 16:44:02 -0700 2008 project files... [raid-ox]
file project.js Sat Oct 18 14:51:23 -0700 2008 Version 0.2 Final Revision. See Changelog for d... [raid-ox]
file readme.txt Sat Oct 18 14:51:23 -0700 2008 Version 0.2 Final Revision. See Changelog for d... [raid-ox]
file release-notes.txt Sat Oct 18 14:51:23 -0700 2008 Version 0.2 Final Revision. See Changelog for d... [raid-ox]
directory src/ Sat Oct 18 15:52:30 -0700 2008 very little bug fix. (linking related) [raid-ox]
readme.txt
Chain.js

Chain.js is a jQuery plugin to bind javascript data to html and generate content using the data. It provides automatic 
data management and content generation. please see wiki for more information.
USAGE

copy chain.js from /build directory to your directory
load it together with jQuery into your page using:

<script src="path/to/jquery.js" language="javascript"></script>
<script src="path/to/chain.js" language="javascript"></script>

DEVELOPER GUIDE

Code Quality
- It is encouraged to adapt the code to the current coding style
- Please verify the code using www.jslint.com 
  (with tolerate eval, breaking, for in and inefficient subscripting on)

Documenting
- Please document your code thoroughly
- Write examples and descriptions
- document codes, which other developers may not understand at first glance

We use Rhino for shell engine, providing tools for creating documentation
and source building. Rhino is included in the latest Java SDK.
For mac os x, follow this instruction:
http://peter.michaux.ca/article/2982

It is very handy to create an alias for Rhino:
$ alias js='java org.mozilla.javascript.tools.shell.Main'
save this in your bash profile

Building From Source Code
to build from source code go to terminal, move to chain directory and do:
$ java org.mozilla.javascript.tools.shell.Main bin/build.js
or if you created an alias
$ js bin/build.js

Generating Documentation
do:
$ java org.mozilla.javascript.tools.shell.Main bin/doc.js
or
$ js bin/doc.js

Including new source file
to include new source file open project.js and add new source to
profile.sources array