README
PrototypeAn object-oriented Javascript library© 2005 Sam Stephenson (sam@) Prototype is a Javascript library that aims to ease development of dynamic web applications. Its development is driven heavily by the Ruby on Rails framework, but it can be used in any environment. Targeted platformsPrototype currently targets the following platforms:
Using PrototypeTo use Prototype in your application, download the latest release from the Prototype web site (prototype./) and copy dist/prototype.js to a suitable location. Then include it in your HTML like so: <script type="text/javascript" src="/path/to/prototype.js"></script> Building Prototype from sourceprototype.js is a composite file generated from many source files in the src/ directory. To build Prototype, you’ll need:
From the root Prototype directory,
Contributing to PrototypeYou‘ll need the tools mentioned above. Modify the files in src/, add tests in test/ if possible, generate a new dist file, and record the changes with darcs record -al. Then email patches to sam@ using darcs send. DocumentationPrototype is embarrassingly lacking in documentation. (The source code should be fairly easy to comprehend; I’m committed to using a clean style with meaningful identifiers. But I know that only goes so far.) Much of the problem is that there is no easy way to document it from within the source code itself. I’ve tried JSDoc and a Perl script included with JsUnit; neither groks Prototype’s hash-style class definitions or inheritance scheme. Making them work would require major changes, and I don’t have the time for that right now. |
|