On Fri, Mar 16, 2012 at 3:21 AM, Erik Huelsmann <[email protected]> wrote: > Hi Chris, > > How about abstracting these tests into a generic method in the > LedgerSMB::Template module: format_available($) which takes the format > string as its argument and returns true or not? > > The implementation can be as easy as: > > sub format_available { > my ($format) = @_; > return ! eval { require "LedgerSMB::Template::$format"; }; > }
Sounds good. Sounds like it would be helpful for 1.4 as well. Best Wishes, Chris Travers ------------------------------------------------------------------------------ This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure _______________________________________________ Ledger-smb-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ledger-smb-devel
