aboutsummaryrefslogtreecommitdiffstats
path: root/test/nested_html_output.html
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@redhat.com>2011-10-28 14:30:53 +0200
committerMatěj Cepl <mcepl@redhat.com>2011-10-28 14:30:53 +0200
commite10506226abbca14ebe99c987feb155f1253abec (patch)
tree5efe7ff191e68045ad6ac569eb6401e8815bfd69 /test/nested_html_output.html
parent81f605fb4885efbfccf615848a3f5ee6a1452025 (diff)
downloadjson_diff-e10506226abbca14ebe99c987feb155f1253abec.tar.gz
HTML formatted output possible.
Diffstat (limited to 'test/nested_html_output.html')
-rw-r--r--test/nested_html_output.html43
1 files changed, 43 insertions, 0 deletions
diff --git a/test/nested_html_output.html b/test/nested_html_output.html
new file mode 100644
index 0000000..6c5b83c
--- /dev/null
+++ b/test/nested_html_output.html
@@ -0,0 +1,43 @@
+
+<!DOCTYPE html>
+<html lang='en'>
+<meta charset="utf-8" />
+<title>json_diff result</title>
+<style>
+td {
+ text-align: center;
+}
+.append_class {
+ color: green;
+}
+.remove_class {
+ color: red;
+}
+.update_class {
+ color: navy;
+}
+</style>
+<body>
+ <h1>json_diff result</h1>
+ <table>
+ <tr>
+ <td class='remove_class'>b = 2</td>
+ </tr>
+<tr>
+ <td class='update_class'>a = 2</td>
+ </tr>
+<tr>
+ <td>&nbsp;</td><td class='update_class'>son = Ivánek</td>
+ </tr>
+<tr>
+ <td>&nbsp;</td><td class='append_class'>daughter = Maruška</td>
+ </tr>
+<tr>
+ <td class='append_class'>c = 3</td>
+ </tr>
+
+
+ </table>
+ </body>
+ </html>
+