« blib/lib/WWW/Shopify/Liquid/Filter/Decode.pm
↑ Summary
blib/lib/WWW/Shopify/Liquid/Filter/DividedBy.pm »
| 1 | #!/usr/bin/perl | ||
| 2 | use strict; | ||
| 3 | use warnings; | ||
| 4 | |||
| 5 | package WWW::Shopify::Liquid::Filter::DecodeBase64; | ||
| 6 | use base 'WWW::Shopify::Liquid::Filter'; | ||
| 7 | |||
| 8 | use MIME::Base64 qw(decode_base64); | ||
| 9 | |||
| 10 | sub operate { | ||
| 11 | my ($self, $hash, $operand) = @_; | ||
| 12 | return decode_base64($operand); | ||
| 13 | } | ||
| 14 | |||
| 15 | 1; |