Re: [htmltmpl] A valid reason for template support for select lists?

2003-10-19 Thread Cees Hek
Perhaps you are looking at the wrong tool to solve this problem. Personally I never use TMPL_VARs to fill out my forms. I use HTML::FillInForm to do it for me. This would solve your problem and simplify your templates (no need for the tmpl_if mess to select an option in a selection box). With

Re: [htmltmpl] A valid reason for template support for select lists?

2003-10-19 Thread Sam Tregar
On Sun, 19 Oct 2003, Mark Fuller wrote: > Do you know of any tutorials, books or how-tos explaining the use of gettext > in CGIs? For example, are the different locale headings determined > automatically by the server (from something the browser sends reflecting the > user's settings?) Or, is it c

Re: [htmltmpl] A valid reason for template support for select lists?

2003-10-19 Thread simran
Have a look at the HTML::FillInForm module as well, i use it quite a lot in conjunction with HTML::Template to have the right "select fields" selected - works like a charm. On Mon, 2003-10-20 at 07:31, Mark Fuller wrote: > > From: "Sam Tregar" <[EMAIL PROTECTED]> > > Are you saying you can't do t

Re: [htmltmpl] A valid reason for template support for select lists?

2003-10-19 Thread Mark Fuller
>From: "Sam Tregar" <[EMAIL PROTECTED]> > > ... or you need to go to some kind of gettext-style > i18n database. You might need that anyway, for error messages and > other generated text. I wasn't familiar with that. I've been out reading anything I can find in search results and I think you're r

Re: [htmltmpl] Phalanx and HTML::Template

2003-10-19 Thread Sam Tregar
On Mon, 20 Oct 2003, Gabor Szabo wrote: > > > 2) use Test::More for these new tests. > > > > Why? That would add a new dependency for the module. I got enough > > flak when I started using Test.pm! > > That's true and I was a bit worried about it but Test::More is already in > 5.8.0 and based on

Re: [htmltmpl] A valid reason for template support for select lists?

2003-10-19 Thread Sam Tregar
On Sun, 19 Oct 2003, Mark Fuller wrote: > Now, in a template I might have an option box for "male or female". In > Spanish, "hombre or mujer." This language difference is kept in the > template, and an ordinal is used to communicate to the scripts what the > choice was. Regardless of language, "1"

Re: [htmltmpl] A valid reason for template support for select lists?

2003-10-19 Thread Mark Fuller
> From: "Sam Tregar" <[EMAIL PROTECTED]> > Are you saying you can't do this now? I've produced boxes > with HTML::Template. It requires a nasty pile of logic but > it's doable. Hi Sam. Yes, I think "tmpl_if" will work. The problem I have is that my templates will be organized by spoken languag

Re: [htmltmpl] A valid reason for template support for select lists?

2003-10-19 Thread Roger Burton West
On Sun, Oct 19, 2003 at 12:53:24PM -0700, Mark Fuller wrote: >I just found html::template and it's exactly what I was looking for. The >only thing that is a minor shortcoming for me is the inability to do option >select lists. I understand the emphasis on keeping a template a template >(and languag

Re: [htmltmpl] A valid reason for template support for select lists?

2003-10-19 Thread Sam Tregar
On Sun, 19 Oct 2003, Mark Fuller wrote: > I just found html::template and it's exactly what I was looking for. The > only thing that is a minor shortcoming for me is the inability to do option > select lists. I understand the emphasis on keeping a template a template > (and languages separate). Bu

Re: [htmltmpl] Phalanx and HTML::Template

2003-10-19 Thread Sam Tregar
On Fri, 17 Oct 2003, Gabor Szabo wrote: > Current status v2.6 > --- > There are 57 (actually 60 but the script reports 57) tests. > Based on the report of Devel::Cover the tests provide a 67.95% code > coverage. That seems pretty low. Is that meant to suggest that 33% of lines of

[htmltmpl] A valid reason for template support for select lists?

2003-10-19 Thread Mark Fuller
I just found html::template and it's exactly what I was looking for. The only thing that is a minor shortcoming for me is the inability to do option select lists. I understand the emphasis on keeping a template a template (and languages separate). But, here's an example of why I believe it is justi