.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" Set up some character translations and predefined strings. \*(-- will .\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left .\" double quote, and \*(R" will give a right double quote. \*(C+ will .\" give a nicer C++. Capital omega is used to do unbreakable dashes and .\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, .\" nothing in troff, for use with C<>. .tr \(*W- .ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' .ie n \{\ . ds -- \(*W- . ds PI pi . if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch . if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch . ds L" "" . ds R" "" . ds C` "" . ds C' "" 'br\} .el\{\ . ds -- \|\(em\| . ds PI \(*p . ds L" `` . ds R" '' . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is >0, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .nr rF 0 .if \n(.g .if rF .nr rF 1 .if (\n(rF:(\n(.g==0)) \{\ . if \nF \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} . \} .\} .rr rF .\" ======================================================================== .\" .IX Title "Template::AutoFilter::Parser 3pm" .TH Template::AutoFilter::Parser 3pm "2021-01-06" "perl v5.32.0" "User Contributed Perl Documentation" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH "NAME" Template::AutoFilter::Parser \- parses TT templates and automatically adds filters to tokens .SH "VERSION" .IX Header "VERSION" version 0.143050 .SH "DESCRIPTION" .IX Header "DESCRIPTION" Sub-class of Template::Parser. .SH "METHODS" .IX Header "METHODS" See Template::Parser for most of these, documented here are added methods. .SS "new" .IX Subsection "new" Accepts all the standard Template::Parser parameters, plus some extra: .PP \fI\s-1AUTO_FILTER\s0\fR .IX Subsection "AUTO_FILTER" .PP Accepts a single string, which defines the name of a filter to be applied to all directives omitted from the skip list. This parameter defaults to \&'html'. .PP \fI\s-1SKIP_DIRECTIVES\s0\fR .IX Subsection "SKIP_DIRECTIVES" .PP Allows customization of which Template::Manual::Directives should be exempt from having auto filters applied. Expects an array ref of strings. Default value is the output from \f(CW$self\fR\->default_skip_directives. .SS "split_text" .IX Subsection "split_text" Modifies token processing by adding the filter specified in \s-1AUTO_FILTER\s0 to all filter-less interpolation tokens. .SS "has_skip_field" .IX Subsection "has_skip_field" Checks the field list of a token to see if it contains directives that should be excluded from filtering. .SS "default_skip_directives" .IX Subsection "default_skip_directives" Provides a reference to a hash containing the default directives to be excluded. Default value is: .PP .Vb 3 \& CALL SET DEFAULT INCLUDE PROCESS WRAPPER BLOCK IF UNLESS ELSIF ELSE \& END SWITCH CASE FOREACH FOR WHILE FILTER USE MACRO TRY CATCH FINAL \& THROW NEXT LAST RETURN STOP CLEAR META TAGS DEBUG .Ve .SS "make_skip_directives" .IX Subsection "make_skip_directives" Prebuilds a hash of directives to be skipped while applying auto filters. .SH "AUTHOR" .IX Header "AUTHOR" Christian Walde .SH "COPYRIGHT AND LICENSE" .IX Header "COPYRIGHT AND LICENSE" Christian Walde has dedicated the work to the Commons by waiving all of his or her rights to the work worldwide under copyright law and all related or neighboring legal rights he or she had in the work, to the extent allowable by law. .PP Works under \s-1CC0\s0 do not require attribution. When citing the work, you should not imply endorsement by the author.