Template::Plugin::StripComments - Template Toolkit filter to strip comment blocks
[% USE StripComments %] ... [% FILTER stripcomments %] /* C-style block comments get removed */ <!-- as do HTML comments --> [% END %] ... [% text | stripcomments %]
Template::Plugin::StripComments is a filter plugin for Template::Toolkit, which strips comment blocks from the filtered text.
Template::Plugin::StripComments
The following types of comment blocks are stripped:
Initializes the template plugin.
Filters the given text, removing comment blocks as necessary.
Graham TerMarsch <cpan@howlingfrog.com>
Copyright (C) 2007, Graham TerMarsch. All Rights Reserved.
This is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Template::Plugin::Filter.
To install Template::Plugin::StripComments, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Template::Plugin::StripComments
CPAN shell
perl -MCPAN -e shell install Template::Plugin::StripComments
For more information on module installation, please visit the detailed CPAN module installation guide.