[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#793936: ITP: libtemplate-autofilter-perl -- Template::Toolkit subclass with automatic filtering

Package: wnpp
Owner: Christopher Hoskin <christopher.hoskin@gmail.com>
Severity: wishlist
X-Debbugs-CC: debian-devel@lists.debian.org,debian-perl@lists.debian.org

* Package name    : libtemplate-autofilter-perl
  Version         : 0.143050
  Upstream Author : Christian Walde <walde.christian@gmail.com>
* URL             : https://metacpan.org/release/Template-AutoFilter
* License         : CC0
  Programming Lang: Perl
  Description     : Template::Toolkit subclass with automatic filtering

Template::AutoFilter is a subclass of Template::Toolkit which loads a
specific Parser that is subclassed from Template::Parser. It adds a filter
instruction to each interpolation token found in templates loaded by the TT
engine. Tokens that already have a filter instruction are left unchanged.

By default this automatic filter is set to be 'html', but can be modified
during object creation by passing the AUTO_FILTER option with the name of the
wanted filter.

Additionally a pass-through filter called 'none' is added to the object to
allow exclusion of tokens from being filtered.

Lastly, if you have problems with the directives which get auto filters
applied, you can see the Template::AutoFilter::Parser docs for how you can
customize that.

Reply to: