« blib/lib/WWW/Shopify/Liquid/Filter/EscapeHTML.pm
↑ Summary
blib/lib/WWW/Shopify/Liquid/Filter/StripNewlines.pm »
| 1 | #!/usr/bin/perl | ||
| 2 | |||
| 3 | use strict; | ||
| 4 | use warnings; | ||
| 5 | |||
| 6 | |||
| 7 | =head1 NAME | ||
| 8 | |||
| 9 | WWW::Shopify::Liquid::Dialect::Shopify - Emulates Shopify-like liquid as much as possible. | ||
| 10 | |||
| 11 | =cut | ||
| 12 | |||
| 13 | package WWW::Shopify::Liquid::Dialect::Shopify; | ||
| 14 | use base 'WWW::Shopify::Liquid'; | ||
| 15 | |||
| 16 | sub load_modules { | ||
| 17 | my ($self) = @_; | ||
| 18 | $self->register_operator($_) for (grep { $_ !~ m/regex/i } findallmod WWW::Shopify::Liquid::Operator); | ||
| 19 | $self->register_filter($_) for (findallmod WWW::Shopify::Liquid::Filter); | ||
| 20 | $self->register_tag($_) for (findallmod WWW::Shopify::Liquid::Tag); | ||
| 21 | } | ||
| 22 | |||
| 23 | 1; |