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

Re: SF.net SVN: ledger-smb:[4485] branches/1.3/bin



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