<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>mack-javascript/lib/helpers/testing_helpers.rb</filename>
    </added>
    <added>
      <filename>mack-javascript/lib/rendering/engine/rjs.rb</filename>
    </added>
    <added>
      <filename>mack-javascript/lib/rendering/type/js.rb</filename>
    </added>
    <added>
      <filename>mack-javascript/lib/view_helpers/html_helpers.rb</filename>
    </added>
    <added>
      <filename>mack-javascript/lib/view_helpers/string_helpers.rb</filename>
    </added>
    <added>
      <filename>mack-javascript/spec/fake_application/app/views/vtt/view_template/bleeding_gums_murphy.js.rjs</filename>
    </added>
    <added>
      <filename>mack-javascript/spec/lib/view_helpers/view_template_rjs.rb</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -1,5 +1,5 @@
 module Mack
-  module Javascript
+  module JavaScript
     module Framework
       class Jquery      
         class &lt;&lt; self</diff>
      <filename>mack-javascript/lib/helpers/jquery_helper.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,5 +1,5 @@
 module Mack
-  module Javascript
+  module JavaScript
     module Framework
       class Prototype
         @@callbacks = [:uninitialized, :loading, :loaded, :interactive, :complete, :failure, :success ] + </diff>
      <filename>mack-javascript/lib/helpers/prototype_helper.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,5 +1,5 @@
 module Mack
-  module Javascript
+  module JavaScript
     class ScriptGenerator    
       def initialize
         @lines = ''
@@ -33,13 +33,13 @@ module Mack
       end
 
       def delay(seconds = 1, &amp;block)
-        self &lt;&lt; &quot;setTimeout(function() {\n\n&quot; + yield(Mack::Javascript::ScriptGenerator.new) + &quot;}, #{(seconds * 1000).to_i})&quot;
+        self &lt;&lt; &quot;setTimeout(function() {\n\n&quot; + yield(Mack::JavaScript::ScriptGenerator.new) + &quot;}, #{(seconds * 1000).to_i})&quot;
       end
 
       class &lt;&lt; self
         
         def framework
-          &quot;Mack::Javascript::Framework::#{framework_name}&quot;.constantize
+          &quot;Mack::JavaScript::Framework::#{framework_name}&quot;.constantize
         end
 
         def framework=(args)
@@ -48,7 +48,7 @@ module Mack
         
         private
         def framework_name
-          @@framework_name ||= app_config.mack.js_framework
+          @@framework_name ||= app_config.mack.js_framework.camelcase
         end
       end
 </diff>
      <filename>mack-javascript/lib/helpers/script_generator.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,19 +1,15 @@
 class Vtt::ViewTemplateController
   include Mack::Controller
     
-  def marge_html_markaby_with_layout
-    @last_name = &quot;Simpson&quot;
-    render(:action, &quot;marge&quot;)
+  def bleeding_gums_murphy_with_render
+    @bleeding = true if params[:bleeding]
+    render(:js, &quot;bleeding_gums_murphy&quot;)
   end
   
-  def marge_html_markaby_with_special_layout
-    @last_name = &quot;Simpson&quot;
-    render(:action, &quot;marge&quot;, :layout =&gt; &quot;my_cool&quot;)
+  def bleeding_gums_murphy
+    @bleeding = true if params[:bleeding]
   end
   
-  def marge_html_markaby_without_layout
-    @last_name = &quot;Simpson&quot;
-    render(:action, &quot;marge&quot;, :layout =&gt; false)
-  end
+
     
 end
\ No newline at end of file</diff>
      <filename>mack-javascript/spec/fake_application/app/controllers/vtt/view_template_controller.rb</filename>
    </modified>
    <modified>
      <diff>@@ -3,9 +3,8 @@ Mack::Routes.build do |r|
   r.resource &quot;admin/users&quot;
   
   r.with_options(:controller =&gt; &quot;vtt/view_template&quot;) do |map|
-    map.marge_html_markaby_with_layout &quot;/vtt/marge_html_markaby_with_layout&quot;, :action =&gt; :marge_html_markaby_with_layout
-    map.marge_html_markaby_without_layout &quot;/vtt/marge_html_markaby_without_layout&quot;, :action =&gt; :marge_html_markaby_without_layout
-    map.marge_html_markaby_with_special_layout &quot;/vtt/marge_html_markaby_with_special_layout&quot;, :action =&gt; :marge_html_markaby_with_special_layout
+    map.bleeding_gums_murphy &quot;/vtt/bleeding_gums_murphy&quot;, :action =&gt; :bleeding_gums_murphy, :method =&gt; :post, :format =&gt; :js
+    map.bleeding_gums_murphy_with_render &quot;/vtt/bleeding_gums_murphy_with_render&quot;, :action =&gt; :bleeding_gums_murphy_with_render, :method =&gt; :post, :format =&gt; :js
   end
     
   r.defaults</diff>
      <filename>mack-javascript/spec/fake_application/config/routes.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,6 +1,6 @@
 require File.join(File.dirname(__FILE__), &quot;..&quot;, &quot;..&quot;, &quot;spec_helper.rb&quot;)
 
-class Mack::Javascript::Framework::FirstFramework
+class Mack::JavaScript::Framework::FirstFramework
   class &lt;&lt; self
     def replace
       &quot;I'm in Framework 1&quot;
@@ -8,7 +8,7 @@ class Mack::Javascript::Framework::FirstFramework
   end
 end
 
-class Mack::Javascript::Framework::SecondFramework
+class Mack::JavaScript::Framework::SecondFramework
   class &lt;&lt; self
     def replace
       &quot;I'm in Framework 2&quot;
@@ -16,17 +16,17 @@ class Mack::Javascript::Framework::SecondFramework
   end
 end
 
-describe Mack::Javascript::ScriptGenerator do
+describe Mack::JavaScript::ScriptGenerator do
   before(:each) do
-    @p = Mack::Javascript::ScriptGenerator.new
+    @p = Mack::JavaScript::ScriptGenerator.new
   end
 
   it &quot;should respond to 'framework'&quot; do
-    Mack::Javascript::ScriptGenerator.framework = 'first_framework'
-    Mack::Javascript::ScriptGenerator.framework.should == Mack::Javascript::Framework::FirstFramework
+    Mack::JavaScript::ScriptGenerator.framework = 'first_framework'
+    Mack::JavaScript::ScriptGenerator.framework.should == Mack::JavaScript::Framework::FirstFramework
 
-    Mack::Javascript::ScriptGenerator.framework = 'second_framework'
-    Mack::Javascript::ScriptGenerator.framework.should == Mack::Javascript::Framework::SecondFramework
+    Mack::JavaScript::ScriptGenerator.framework = 'second_framework'
+    Mack::JavaScript::ScriptGenerator.framework.should == Mack::JavaScript::Framework::SecondFramework
   end
 
   it &quot;should respond to 'alert'&quot; do
@@ -38,15 +38,15 @@ describe Mack::Javascript::ScriptGenerator do
     @p.assign('this', 'that')
     @p.to_s.should == &quot;this = \&quot;that\&quot;;&quot;
 
-    @p = Mack::Javascript::ScriptGenerator.new
+    @p = Mack::JavaScript::ScriptGenerator.new
     @p.assign('this', 5)
     @p.to_s.should == &quot;this = 5;&quot;
 
-    @p = Mack::Javascript::ScriptGenerator.new
+    @p = Mack::JavaScript::ScriptGenerator.new
     @p.assign('this', {:my =&gt; 'hash'})
     @p.to_s.should == &quot;this = {\&quot;my\&quot;:\&quot;hash\&quot;};&quot;
 
-    @p = Mack::Javascript::ScriptGenerator.new
+    @p = Mack::JavaScript::ScriptGenerator.new
     @p.assign('this', ['array', 1])
     @p.to_s.should == &quot;this = [\&quot;array\&quot;,1];&quot;
   end
@@ -62,17 +62,17 @@ describe Mack::Javascript::ScriptGenerator do
     @p.call('myFunc', 'firstParam', 3)
     @p.to_s.should == %{myFunc(&quot;firstParam&quot;,3);}
 
-    @p = Mack::Javascript::ScriptGenerator.new
+    @p = Mack::JavaScript::ScriptGenerator.new
     @p.call('myFunc', {:stuff =&gt; 3})
     @p.to_s.should == %{myFunc({&quot;stuff&quot;:3});}
   end
 
   it &quot;should properly handle method_missing&quot; do
-    Mack::Javascript::ScriptGenerator.framework = 'first_framework'
+    Mack::JavaScript::ScriptGenerator.framework = 'first_framework'
     @p.replace.should == &quot;I'm in Framework 1;&quot;
 
-    @p = Mack::Javascript::ScriptGenerator.new
-    Mack::Javascript::ScriptGenerator.framework = 'second_framework'
+    @p = Mack::JavaScript::ScriptGenerator.new
+    Mack::JavaScript::ScriptGenerator.framework = 'second_framework'
     @p.replace.should == &quot;I'm in Framework 2;&quot;
   end
 end</diff>
      <filename>mack-javascript/spec/lib/helpers/js_generator_spec.rb</filename>
    </modified>
  </modified>
  <removed type="array">
    <removed>
      <filename>mack-javascript/spec/fake_application/app/views/vtt/view_template/marge.html.mab</filename>
    </removed>
  </removed>
  <parents type="array">
    <parent>
      <id>5a5202094ea3f0025b9fbd9d071ef3930c26aee1</id>
    </parent>
  </parents>
  <author>
    <name>dsutedja</name>
    <email>dsutedja@helium.com</email>
  </author>
  <url>http://github.com/markbates/mack-more/commit/dba05d792de85fdb868de0d03a666e3b6c4e5aa1</url>
  <id>dba05d792de85fdb868de0d03a666e3b6c4e5aa1</id>
  <committed-date>2008-07-22T07:07:59-07:00</committed-date>
  <authored-date>2008-07-22T07:07:59-07:00</authored-date>
  <message>RJS Support</message>
  <tree>17db17515d57ad45ab48cd765c1ef684b7d12bb7</tree>
  <committer>
    <name>dsutedja</name>
    <email>dsutedja@helium.com</email>
  </committer>
</commit>
