Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Catalyst-View-Text-Template CPAN distribution.

Report information
The Basics
Id: 63142
Status: resolved
Priority: 0/
Queue: Catalyst-View-Text-Template

People
Owner: Nobody in particular
Requestors: dean [...] fragfest.com.au
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Please create a Helper
Please provide a Catalyst::Helper::View::Text::Template ie dean@grimlock:~/svn/ff/FF/script$ ./ff_create.pl view SOMETHING Text::Template exists "/home/dean/svn/ff/FF/script/../lib/FF/View" exists "/home/dean/svn/ff/FF/script/../t" Couldn't load helper "Catalyst::Helper::View::Text::Template", "Can't locate Catalyst/Helper/View/Text/Template.pm in @INC (@INC contains: /home/dean/svn/ff/FF/script/../lib /etc/perl /usr/local/lib/perl/5.10.1 /usr/local/share/perl/5.10.1 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl .) at (eval 275) line 3.
I don't use the helper system. If your (or someone else) provides a working, tested helper, I will include it. -- rjbs
Subject: Re: [rt.cpan.org #63142] Please create a Helper
Date: Sat, 20 Nov 2010 00:35:39 +1100
To: bug-Catalyst-View-Text-Template [...] rt.cpan.org
From: Dean Hamstead <dean [...] fragfest.com.au>
Hi Ricardo is it possible for you to give me access to updating this module on cpan? then i can drop it in myself On 19/11/10 23:23, Ricardo Signes via RT wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=63142> > > I don't use the helper system. If your (or someone else) provides a working, tested helper, I will > include it. >
On 2010-11-19 08:35:53, djzort wrote: Show quoted text
> Hi Ricardo > > is it possible for you to give me access to updating this module on > cpan? then i can drop it in myself
If you write the code, you can send me a patch, and I will review, integrate, and release. -- rjbs
ok see attached obviously it will need to be renamed to <perl path>/Catalyst/Helper/View/Text/Template.pm
Subject: helper.pm
package Catalyst::Helper::View::Text::Template; use strict; =head1 NAME Catalyst::Helper::View::Text::Template - Helper for Text::Template Views =head1 SYNOPSIS script/create.pl view NameOfMyView Text::Template =head1 DESCRIPTION Helper for Text::Template Views. =head2 METHODS =head3 mk_compclass =cut sub mk_compclass { my ( $self, $helper ) = @_; my $file = $helper->{file}; $helper->render_file( 'compclass', $file ); } =head1 SEE ALSO L<Catalyst::Manual>, L<Catalyst::Test>, L<Catalyst::Request>, L<Catalyst::Response>, L<Catalyst::Helper>, L<Catalyst::View::Text::Template> =head1 AUTHOR Dean Hamstead, C<dean@fragfest.com.au> =head1 LICENSE This library is free software . You can redistribute it and/or modify it under the same terms as perl itself. =cut 1; __DATA__ __compclass__ package [% class %]; use strict; use base 'Catalyst::View::Text::Template'; __PACKAGE__->config(TEMPLATE_EXTENSION => '.tmpl'); =head1 NAME [% class %] - Catalyst Text::Template View =head1 SYNOPSIS See L<[% app %]> =head1 DESCRIPTION Catalyst Text::Template View. =head1 AUTHOR [% author %] =head1 LICENSE This library is free software, you can redistribute it and/or modify it under the same terms as Perl itself. =cut 1;
On Thu Dec 16 07:19:39 2010, djzort wrote: Show quoted text
> ok see attached > > obviously it will need to be renamed to > > <perl path>/Catalyst/Helper/View/Text/Template.pm
just nudging this...
Thanks for the reminder, 0.003 is released. -- rjbs