[htmltmpl] die_on_missing_params

2007-10-31 Thread Mathew Robertson
Hi list, Sometime ago I posted a message regarding having an updated H::T which had support for "die_on_missing_params" - a feature requested by Joshua Ball. As a side effect of a machine update, I have managed to loose the patch... If Joshua is still on the list, could you please email me update

Re: [htmltmpl] die_on_missing_params

2007-06-14 Thread Mathew Robertson
Hi List, [ Eventually I will post a patch to H::T to a webpage, in the meantime I have sent an update version directly to Joshua. If others are interested in this patch, shoot me a email. ] > I am happy to say that I haven't run into any problems using Mathew's > patch. It's exactly what I wante

Re: [htmltmpl] die_on_missing_params

2007-06-14 Thread Joshua Ball
Hi list, I am happy to say that I haven't run into any problems using Mathew's patch. It's exactly what I wanted/needed! Thanks! I do have a feature request though: Currently if I leave out 2 params, it only notifies me that one of them is missing. It would be nice if I was told when both were m

Re: [htmltmpl] die_on_missing_params

2007-06-01 Thread Joshua Ball
Thanks! I'll start using it and let you know if I run into any problems. On 5/31/07, Mathew Robertson <[EMAIL PROTECTED]> wrote: > > Hi List, > > Patch sent directly to Josh so as to avoid the list noise. If people are > interested, I will post it (and the test cases). > > cheers, > Mathew >

Re: [htmltmpl] die_on_missing_params

2007-06-01 Thread Robert Hicks
Joshua wrote: > Greetings. > > (I'm sorry if I double posted this. However, the first time I sent it, I was > not subscribed to the mailing list, so I don't think it went through.) > > I find the "die_on_bad_params => 1" to be a very useful feature. Setting it > to 0 is kind of like debugging Per

Re: [htmltmpl] die_on_missing_params

2007-05-31 Thread Mathew Robertson
Hi List, Patch sent directly to Josh so as to avoid the list noise. If people are interested, I will post it (and the test cases). cheers, Mathew Joshua Ball wrote: > Hi Mathew, > > (This is the same Josh as @highgatecross. My e-mail there is down, so > I subscribed from another address. :->)

Re: [htmltmpl] die_on_missing_params

2007-05-31 Thread Joshua Ball
Hi Mathew, (This is the same Josh as @highgatecross. My e-mail there is down, so I subscribed from another address. :->) That's exactly what I'm looking for. I'm dealing with legacy code which has highly nested includes in the templates. From what I've been able to tell, I don't think the origina

Re: [htmltmpl] die_on_missing_params

2007-05-31 Thread Mathew Robertson
Short answer: no there isn't such a feature. However I do have a patch I use to add this ability - with one caveat... the patch changes the behaviour such that if your code never implemented: $ht->param(parm_name => undef); but did rely on the undef'ness of param_name, then your code would need

[htmltmpl] die_on_missing_params

2007-05-30 Thread Joshua
Greetings. (I'm sorry if I double posted this. However, the first time I sent it, I was not subscribed to the mailing list, so I don't think it went through.) I find the "die_on_bad_params => 1" to be a very useful feature. Setting it to 0 is kind of like debugging Perl without "use strict;". Ho