.dataprinter

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
child 262
85dcaca3a0b0
permissions
-rw-r--r--

Add some helpful DDP filters

260
52b31c74fe37 Add some helpful DDP filters
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
1 {
52b31c74fe37 Add some helpful DDP filters
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
2 filters => {
52b31c74fe37 Add some helpful DDP filters
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
3 'JSON::PP::Boolean' => sub { ${$_[0]} ? 'true': 'false' },
52b31c74fe37 Add some helpful DDP filters
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
4 'Mojo::JSON::_Bool' => sub { ${$_[0]} ? 'true': 'false' },
52b31c74fe37 Add some helpful DDP filters
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
5 'URI::http' => sub { "URI<$_[0]>" },
52b31c74fe37 Add some helpful DDP filters
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
6 'URI::https' => sub { "URI<$_[0]>" },
52b31c74fe37 Add some helpful DDP filters
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
7 }
52b31c74fe37 Add some helpful DDP filters
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
8 };

mercurial