Re: [Catalyst] Re: How to access current MyApp instance ?

2007-07-05 Thread Perrin Harkins
On 7/4/07, Jonathan Rockway [EMAIL PROTECTED] wrote: I agree that this is a terrible way to do things. Perl has the right idea with $sigils, so at least functions look different from other @things. Oh, and you know... a lexical scope. If you feel the need for complicated scoping rules in

Re: [Catalyst] Re: How to access current MyApp instance ?

2007-07-05 Thread Bill Moseley
On Thu, Jul 05, 2007 at 11:15:57AM -0400, Perrin Harkins wrote: For those out there who like TT2's mini-language, I've been using it for many years without ever encountering any of the problems described in this thread. I never add any variables to the stash from inside my templates

Re: [Catalyst] Re: How to access current MyApp instance ?

2007-07-05 Thread Perrin Harkins
On 7/5/07, A. Pagaltzis [EMAIL PROTECTED] wrote: That's what I was advising, basically, except that I would tell people to use INCLUDE instead of PROCESS. Else you'll be violating your own rule not to add variables to the stash from inside a template, as soon as any of your blocks are

Re: [Catalyst] Re: How to access current MyApp instance ?

2007-07-04 Thread Jonathan Rockway
On Sunday 01 July 2007 02:27:17 pm A. Pagaltzis wrote: Of course, we’ve known since the ’70s or so how to make better programming languages, but ABW considers templating languages to be totally different from programming languages, so you get to be transported back to the ’60s. I agree that

[Catalyst] Re: How to access current MyApp instance ?

2007-07-01 Thread A. Pagaltzis
* Oleg Pronin [EMAIL PROTECTED] [2007-07-01 16:00]: Because [%Game.detailsHref%] or [%Game.historyHref%] is much easier and faster to call then [%INCLUDE game_hrefs game=Game type='details'%] Is that so much shorter than [%Game.detailsHref(c)%]? Regards, -- Aristotle Pagaltzis //

[Catalyst] Re: How to access current MyApp instance ?

2007-07-01 Thread A. Pagaltzis
* Bill Moseley [EMAIL PROTECTED] [2007-07-01 19:25]: Macro? [% game_detail_link( Game, 'Click here' ); game_history_link( Game, 'View history' ); %] Avoid macros like the plague. • They share a namespace with variables. • TT2 only has global variables with dynamic

Re: [Catalyst] Re: How to access current MyApp instance ?

2007-07-01 Thread Bill Moseley
On Sun, Jul 01, 2007 at 09:27:17PM +0200, A. Pagaltzis wrote: * Bill Moseley [EMAIL PROTECTED] [2007-07-01 19:25]: Macro? [% game_detail_link( Game, 'Click here' ); game_history_link( Game, 'View history' ); %] Avoid macros like the plague. ??? They

[Catalyst] Re: How to access current MyApp instance ?

2007-07-01 Thread A. Pagaltzis
* Bill Moseley [EMAIL PROTECTED] [2007-07-01 23:05]: On Sun, Jul 01, 2007 at 09:27:17PM +0200, A. Pagaltzis wrote: Of course, we’ve known since the ’70s or so how to make better programming languages, but ABW considers templating languages to be totally different from programming languages,