File Coverage

blib/lib/Template/Liquid/Tag/Continue.pm
Criterion Covered Total %
statement 13 13 100.0
branch n/a
condition n/a
subroutine 5 5 100.0
pod 0 1 0.0
total 18 19 94.7


line stmt bran cond sub pod time code
1             our $VERSION = '1.0.22';
2             use strict;
3 24     24   142 use warnings;
  24         46  
  24         571  
4 24     24   102 require Template::Liquid::Error;
  24         41  
  24         709  
5             require Template::Liquid::Utility;
6             use base 'Template::Liquid::Tag::Break';
7 24     24   100  
  24         38  
  24         2797  
8 24     24   62 my $s = shift;
9             $s->{template}->{continue} = 1;
10             return '';
11 21     21 0 25 }
12 21         34 1;
13 21         32  
14             =pod
15              
16             =encoding UTF-8
17              
18             =begin stopwords
19              
20             Lütke jadedPixel
21              
22             =end stopwords
23              
24             =head1 NAME
25              
26             Template::Liquid::Tag::Continue - For-block jitter construct
27              
28             =head1 Synopsis
29              
30             {% for item in collection %}
31             {% if item.other_condition %}
32             {% continue %}
33             {% endif %}
34             {% endfor %}
35              
36             =head1 Description
37              
38             You can use the C<{% continue %}> tag to fall through the current iteration of
39             the enclosing C<for|Template::Liquid::Tag::For> block.
40              
41             =head1 See Also
42              
43             Liquid for Designers: http://wiki.github.com/tobi/liquid/liquid-for-designers
44              
45             L<Template::Liquid|Template::Liquid/"Create your own filters">'s docs on custom
46             filter creation
47              
48             =head1 Author
49              
50             Sanko Robinson <sanko@cpan.org> - http://sankorobinson.com/
51              
52             The original Liquid template system was developed by jadedPixel
53             (http://jadedpixel.com/) and Tobias Lütke (http://blog.leetsoft.com/).
54              
55             =head1 License and Legal
56              
57             Copyright (C) 2009-2022 by Sanko Robinson E<lt>sanko@cpan.orgE<gt>
58              
59             This program is free software; you can redistribute it and/or modify it under
60             the terms of The Artistic License 2.0. See the F<LICENSE> file included with
61             this distribution or http://www.perlfoundation.org/artistic_license_2_0. For
62             clarification, see http://www.perlfoundation.org/artistic_2_0_notes.
63              
64             When separated from the distribution, all original POD documentation is covered
65             by the Creative Commons Attribution-Share Alike 3.0 License. See
66             http://creativecommons.org/licenses/by-sa/3.0/us/legalcode. For clarification,
67             see http://creativecommons.org/licenses/by-sa/3.0/us/.
68              
69             =cut