Sha256: e493199e9f454bab2bedfaa2ff6f635dc9bec10b3d38871c93b4528e393a88e2
Contents?: true
Size: 841 Bytes
Versions: 1
Compression:
Stored size: 841 Bytes
Contents
= DiffRenderer DiffRenderer creates pretty HTML diffs for text and bits of html documents. == Example Usage #!/usr/bin/ruby require 'rubygems' require 'diffrenderer' old_text = ['This was some text'] new_text = ['This is some text'] puts DiffRenderer.new(old_text, new_text).to_html Generates : <p> This <span class="removed">was</span> <span class="added">is</span> some text </p> See the examples directory for more details. == Credits Original code produced by Rattle (http://www.rattlecentral.com) with the help of Ashley Moran (http://github.com/ashleymoran/) Gemified by robl (http://www.monkeyhelper.com) == Todo * Add some tests * Further documentation - description of process, multi-paragraph example == Copyright Copyright (c) 2009 Rattle http://www.rattlecentral.com. See LICENSE for details.
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
diffrenderer-0.0.3 | README.rdoc |