Fwd: MooseX::Role::TTSelf

2008-11-14 Thread Chris Prather
forgot to CC the list -- Forwarded message -- From: Chris Prather [EMAIL PROTECTED] Date: Thu, Nov 13, 2008 at 1:12 PM Subject: Re: MooseX::Role::TTSelf To: Ian Sillitoe [EMAIL PROTECTED] On Thu, Nov 13, 2008 at 1:01 PM, Ian Sillitoe [EMAIL PROTECTED] wrote: Hi Chris

Re: MooseX::Role::TTSelf

2008-11-14 Thread Chris Prather
Template file. I did a quick search and couldn't see anything obvious that already did this - anyone have any comments/suggestions? Cheers, Ian MODULE MooseX::Role::TTSelf SYNOPSIS Farm/Cow.pm package Farm::Cow; use Moose; with 'MooseX::Role::TTSelf'; has 'spots

Re: MooseX::Role::TTSelf

2008-11-14 Thread Hans Dieter Pearcey
On Thu, Nov 13, 2008 at 05:37:27PM +, Ian Sillitoe wrote: Farm/Cow.t .t is probably not a great extension, since most people will associate that with test files. .tt or .tt2 are common. hdp.

MooseX::Role::TTSelf

2008-11-13 Thread Ian Sillitoe
that already did this - anyone have any comments/suggestions? Cheers, Ian MODULE MooseX::Role::TTSelf SYNOPSIS Farm/Cow.pm package Farm::Cow; use Moose; with 'MooseX::Role::TTSelf'; has 'spots' = ( is = 'rw' ); sub moo { Mooo } Farm/Cow.t This cow has [% self.spots

Re: MooseX::Role::TTSelf

2008-11-13 Thread Ian Sillitoe
Hi Chris, Actually I just released an alpha version of something that could do exactly this, but I'm using it for a completely different purpose http://search.cpan.org/src/PERIGRIN/XML-Toolkit-0.02/lib/XML/Filter/Moose/ClassTemplate.pm Cool - looks pretty similar to the code I've got here.