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
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
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
>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
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
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"
> 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
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
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
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
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
11 matches
Mail list logo