[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: SF.net SVN: ledger-smb:[4485] branches/1.3/bin
- Subject: Re: SF.net SVN: ledger-smb:[4485] branches/1.3/bin
- From: Chris Travers <..hidden..>
- Date: Fri, 16 Mar 2012 04:16:16 -0700
On Fri, Mar 16, 2012 at 3:21 AM, Erik Huelsmann <..hidden..> 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