Add some helpful DDP filters

Thu, 18 Feb 2016 20:31:46 -0500

author
Meredith Howard <mhoward@roomag.org>
date
Thu, 18 Feb 2016 20:31:46 -0500
changeset 260
52b31c74fe37
parent 259
3ea35d31175b
child 261
6254589972e6

Add some helpful DDP filters

.dataprinter file | annotate | diff | comparison | revisions
new file mode 100644
--- /dev/null
+++ b/.dataprinter
@@ -0,0 +1,8 @@
+{
+  filters => {
+    'JSON::PP::Boolean' => sub { ${$_[0]} ? 'true': 'false'  },
+    'Mojo::JSON::_Bool' => sub { ${$_[0]} ? 'true': 'false'  },
+    'URI::http'         => sub { "URI<$_[0]>"  },
+    'URI::https'        => sub { "URI<$_[0]>"  },
+  }
+};

mercurial