<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>Rakefile</filename>
    </added>
    <added>
      <filename>init.rb</filename>
    </added>
    <added>
      <filename>install.rb</filename>
    </added>
    <added>
      <filename>lib/javascript_helper.rb</filename>
    </added>
    <added>
      <filename>test/javascript_helper_test.rb</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -0,0 +1,49 @@
+Javascript Dependency Manager
+====
+This plugin is a basic javascript dependency manager. It makes it simple to 
+specify the dependencies for specific javascript files/libraries and implicitly
+include them.
+
+Example Usage:
+1. Add &quot;include JavascriptHelper&quot; in your ApplicationHelper.
+
+  # app/helpers/application_helper.rb
+  module ApplicationHelper
+    include JavascriptHelper
+  end
+  
+2. Specify any dependencies in a method named &quot;js_dependencies&quot; (optional)
+Note: All the default dependencies are defined already (prototype/scriptaculous)
+  # app/helpers/application_helper.rb
+  module ApplicationHelper
+    include JavascriptHelper
+    
+    def js_dependencies
+      {
+        # dialog_box.js requires effects.js and behaviour.js
+        :dialog_box =&gt; [:effects, :behaviour] 
+      }
+    end
+  end
+  
+3. In your layout, add &quot;javascript_tags&quot; in the head of your HTML doc.
+  
+  # app/views/layouts/default.html.erb
+  ...
+  &lt;head&gt;
+    &lt;%= javascript_tags -%&gt;
+  &lt;/head&gt;
+  ...
+  
+4. In your views, when you need to use the dialog_box.js library,
+      just include it using the &quot;js&quot; method or 
+      &quot;add_javascript_requirement&quot;
+
+  # app/views/users/new.html.erb
+  &lt;% js :dialog_box %&gt; # you can use a string or symbol for the name.
+
+
+5. That's it. It's a work in progress, feel free to contribute to it:
+   http://github.com/arya/js_dependency_manager
+
+  
\ No newline at end of file</diff>
      <filename>README</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>ed41bf961edbe666b345eaf99915695579d65517</id>
    </parent>
  </parents>
  <author>
    <name>Arya Asemanfar</name>
    <email>arya.asemanfar@gmail.com</email>
  </author>
  <url>http://github.com/arya/js_dependency_manager/commit/48874215443058831a4a6c9d313cbd25b68bec56</url>
  <id>48874215443058831a4a6c9d313cbd25b68bec56</id>
  <committed-date>2008-04-26T23:11:03-07:00</committed-date>
  <authored-date>2008-04-26T23:11:03-07:00</authored-date>
  <message>* README updated with example usage
* JavascriptHelper added
* basic unit tests</message>
  <tree>678bd7cfdb58f4b1b2737c9880aad100feda410e</tree>
  <committer>
    <name>Arya Asemanfar</name>
    <email>arya.asemanfar@gmail.com</email>
  </committer>
</commit>
