<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -155,6 +155,26 @@ module Liquid
       array.last if array.respond_to?(:last)
     end
     
+    # addition
+    def plus(input, operand)
+      input + operand if input.respond_to?('+')
+    end
+    
+    # subtraction
+    def minus(input, operand)
+      input - operand if input.respond_to?('-')
+    end
+    
+    # multiplication
+    def times(input, operand)
+      input * operand if input.respond_to?('*')
+    end
+    
+    # division
+    def divided_by(input, operand)
+      input / operand if input.respond_to?('/')
+    end
+    
   end
    
   Template.register_filter(StandardFilters)</diff>
      <filename>lib/liquid/standardfilters.rb</filename>
    </modified>
    <modified>
      <diff>@@ -118,9 +118,25 @@ class StandardFiltersTest &lt; Test::Unit::TestCase
     assert_template_result &quot;a&lt;br /&gt;\nb&lt;br /&gt;\nc&quot;, &quot;{{ source | newline_to_br }}&quot;, 'source' =&gt; &quot;a\nb\nc&quot;
   end
   
+  def test_plus
+    assert_template_result &quot;2&quot;, &quot;{{ 1 | plus:1 }}&quot;
+    assert_template_result &quot;11&quot;, &quot;{{ '1' | plus:'1' }}&quot;
+  end
   
+  def test_minus
+    assert_template_result &quot;4&quot;, &quot;{{ input | minus:operand }}&quot;, 'input' =&gt; 5, 'operand' =&gt; 1
+  end
   
+  def test_times
+    assert_template_result &quot;12&quot;, &quot;{{ 3 | times:4 }}&quot;
+    assert_template_result &quot;foofoofoofoo&quot;, &quot;{{ 'foo' | times:4 }}&quot;
+  end
   
+  def test_divided_by
+    assert_template_result &quot;4&quot;, &quot;{{ 12 | divided_by:3 }}&quot;
+    assert_template_result &quot;4&quot;, &quot;{{ 14 | divided_by:3 }}&quot;
+    assert_template_result &quot;5&quot;, &quot;{{ 15 | divided_by:3 }}&quot;
+  end
   
 end
 </diff>
      <filename>test/standard_filter_test.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>3bfde37a53edc8502052696e53fde3758686b718</id>
    </parent>
  </parents>
  <author>
    <name>James MacAulay</name>
    <email>james@jadedpixel.com</email>
  </author>
  <url>http://github.com/tobi/liquid/commit/69bc84b7774f7404067c1d553535f61a462d7313</url>
  <id>69bc84b7774f7404067c1d553535f61a462d7313</id>
  <committed-date>2008-10-15T08:02:25-07:00</committed-date>
  <authored-date>2008-05-12T14:11:42-07:00</authored-date>
  <message>Added filters for basic arithmetic</message>
  <tree>0200d8694ca77b5cbe26431910de7b6ef5c5a56d</tree>
  <committer>
    <name>James MacAulay</name>
    <email>james@jadedpixel.com</email>
  </committer>
</commit>
