1 # This module is part of debbugs, and is released
2 # under the terms of the GPL version 2, or any later
3 # version at your option.
4 # See the file README and COPYING for more information.
6 # Copyright 2018 by Don Armstrong <don@donarmstrong.com>.
8 package Debbugs::Text::XslateBridge;
13 use base qw(Text::Xslate::Bridge);
17 Debbugs::Text::XslateBridge -- bridge for Xslate to add in useful functions
21 This module provides bridge functionality to load functions into
22 Text::Xslate. It's loosely modeled after
23 Text::Xslate::Bridge::TT2Like, but with fewer functions.
32 use vars qw($VERSION);
41 bridge(scalar => {length => \&__length,
43 function => {length => \&__length,}