* Barrie Slaymaker <[EMAIL PROTECTED]> [2002-12-20 09:20]: > On Fri, Dec 20, 2002 at 09:12:09AM -0500, darren chamberlain wrote: > > Oh, that's a pretty straightforward (though completely undocumented) > > one: > > heh, it's not straightforward if it's undocumented. Yessirree, that's > my motto.
Fair enough. :) > > You can call: > > > > my $foo = $d->foo(); > > > > and get 'bar'. > > Thanks for the tip, that's a beaut I'll use. Any chance of you sending > a docs patch to the TT2 folks? The docs for Template::Provider state: fetch($name) Returns a compiled template for the name specified. If the template cannot be found then (undef, STATUS_DECLINED) is returned. If an error occurs (e.g. read error, parse error) then ($error, STATUS_ERROR) is returned, where $error is the error message generated. If the TOLERANT flag is set the the method returns (undef, STATUS_DECLINED) instead of returning an error. Which, while acurrate, is not very informative. Seeing as how I'm one of the TT2 folks, though, I can probably arrange for some examples to be added to the docs. :) (darren) -- Going to church does not make a person religious, nor does going to school make a person educated, any more than going to a garage makes a person a car.