« lib/WWW/Shopify/Liquid/Dialect/Shopify/Filter/LinkToVendor.pm
↑ Summary
lib/WWW/Shopify/Liquid/Filter/Slice.pm »
| 1 | #!/usr/bin/perl | ||
| 2 | use strict; | ||
| 3 | use warnings; | ||
| 4 | |||
| 5 | package WWW::Shopify::Liquid::Dialect::Shopify::Tag::Layout; | ||
| 6 | use base 'WWW::Shopify::Liquid::Tag::Free'; | ||
| 7 | sub process { | ||
| 8 | my ($self, $hash, $action, $pipeline) = @_; | ||
| 9 | my $result = $self->{arguments}->[0]->$action($pipeline, $hash); | ||
| 10 | return $self if blessed($result); | ||
| 11 | $hash->{layout} = $result; | ||
| 12 | return ''; | ||
| 13 | } | ||
| 14 | |||
| 15 | |||
| 16 | |||
| 17 | 1; |