<quote who="Perrin Harkins">
> On Tue, 2006-07-18 at 19:52 +0100, Gavin Henry wrote:
>> Well, this is for Catalyst, so it's classed as View logic, so I kept it
>> in
>> the template.
>
> Be that as it may, if you had written the logic in Perl, you would have
> known how to do it without asking.

I do, and I know ;-)

> When you have to wonder how to do
> something in TT, it's often a sign you should be doing it in perl.

Agreed. The "only" reason I am doing it this way is because I want to add
new tips/images to the template and not have to restart the server, as we
use mod_perl.

If I put these things in the "auto" of the main app, then I need to edit
the myapp.pm, then restart.

If I think a wee bit harder, it's probably easier to pass in a rand number
via the $c->stash of Catalyst, but for this circumstance, it fits nicely.

Thanks for your advice,

Gavin.

>
> - Perrin
>
>
> _______________________________________________
> templates mailing list
> [email protected]
> http://lists.template-toolkit.org/mailman/listinfo/templates
>


_______________________________________________
templates mailing list
[email protected]
http://lists.template-toolkit.org/mailman/listinfo/templates

Reply via email to