Thu, 18 Feb 2016 20:31:46 -0500
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 | }; |