line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
#!/usr/bin/perl |
2
|
37
|
|
|
37
|
|
15382
|
use strict; |
|
37
|
|
|
|
|
126
|
|
|
37
|
|
|
|
|
1125
|
|
3
|
37
|
|
|
37
|
|
242
|
use warnings; |
|
37
|
|
|
|
|
100
|
|
|
37
|
|
|
|
|
1443
|
|
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
# This is to be used with the renderer and custom tags. |
6
|
|
|
|
|
|
|
package WWW::Shopify::Liquid::Tag::Return; |
7
|
37
|
|
|
37
|
|
242
|
use base 'WWW::Shopify::Liquid::Tag::Free'; |
|
37
|
|
|
|
|
96
|
|
|
37
|
|
|
|
|
7105
|
|
8
|
0
|
|
|
0
|
0
|
0
|
sub min_arguments { return 1; } |
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
sub render { |
11
|
1
|
|
|
1
|
0
|
3
|
my ($self, $renderer, $hash) = @_; |
12
|
1
|
|
|
|
|
2
|
my $arguments = $self->{arguments}->[0]; |
13
|
1
|
50
|
|
|
|
3
|
$arguments = $arguments->render($renderer, $hash) if !$self->is_processed($arguments); |
14
|
1
|
|
|
|
|
3
|
$renderer->{return_value} = $arguments; |
15
|
1
|
|
|
|
|
2
|
return ''; |
16
|
|
|
|
|
|
|
} |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
1; |