blib/lib/Template/Liquid/Tag/Continue.pm

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