Re: OT [htmltmpl] Re: eWeek Reviews Bricolage

2004-08-11 Thread simran
I'm a * start with postgres approx 1996 - it was out there and simple... * migrated to mysql (for speed) approx 1998 - was gazillions of times faster than postgres (postgres was slooow for the average transaction) * migrated back to postgres approx 2000 - postgres improved vastly in

Re: [htmltmpl] Including templates where the name is dtermined at run time

2004-08-08 Thread simran
> Dan Horne wrote: > > Hi all > > > > I wish to include a template within another template. However, the > > template name to be included is determined at run time. I've tried: > > > > > > > > but I get "Cannot open included file SUB_CONTENT : file not found" > > > > I tried > > > > > >

Re: [htmltmpl] [OT] Is their a maximum amount of data that can be disp layed by HTML:: Template?

2004-07-13 Thread simran
hould help... simran. On Wed, 2004-07-14 at 09:19, Mathew Robertson wrote: > > > That looks like a generic IE error message - look at the bottom of > > > the page. It probably has something like - > > > > > > HTTP 500 - Internal server error > > > I

Re: [htmltmpl] Patch to fix global_vars and loop problem...

2004-05-17 Thread simran
Hi Sam, Did you decide on what to do with the submitted patch? simran. On Wed, 2004-05-12 at 16:51, simran wrote: > very good points :-) > > How is the attached as a patch... > > simran. > > > > > On Wed, 2004-05-12 at 14:09, Sam Tregar wrote: > &g

Re: [htmltmpl] Patch to fix global_vars and loop problem...

2004-05-12 Thread simran
[...snip...] > > Another example: > > > > -- test.pl -- > > #!/usr/bin/perl > > my $tvar = "this is a test"; > > $tvar = undef; > > print "Tvar=$tvar\n"; > > - > > The above prints: Tvar= > > true - but only if you dont do: > > use strict; > use warnings;

Re: [htmltmpl] Patch to fix global_vars and loop problem...

2004-05-12 Thread simran
, so in the same context if "undef" should mean... take the outer scope, then perl should have ignored my "$tvar = undef" line... I think its definitely a bug :-) It has infact been flagged before as well... its partially on a thread at: http://www.mail-archive.com/[EMAIL P

Re: [htmltmpl] Patch to fix global_vars and loop problem...

2004-05-11 Thread simran
very good points :-) How is the attached as a patch... simran. On Wed, 2004-05-12 at 14:09, Sam Tregar wrote: > On Wed, 12 May 2004, simran wrote: > > > +foreach my $row (@$value) { > > + foreach my $key (keys %$row) { > >

[htmltmpl] Patch to fix global_vars and loop problem...

2004-05-11 Thread simran
array ref - parameter is not a TMPL_LOOP!"); +foreach my $row (@$value) { + foreach my $key (keys %$row) { +$row->{$key} ||= ""; + } +} $param_map->{$param}[HTML::Template::LOOP::PARAM_SET] = [EMAIL PROTECTED]; } else {

Re: [htmltmpl] TMPL_INCLUDE with variable name?

2004-03-28 Thread simran
Have a look at help on "filters" in the HTML::Template documentation. They usually come very handy for this type of stuff... On Mon, 2004-03-29 at 14:32, Bill Nixon wrote: > How about using another instance of HTML::Template within your code to generate the > upselling HTML text and assign th

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] Global Vars - not for all variables

2003-07-29 Thread simran
On Wed, 2003-07-30 at 14:45, Sam Tregar wrote: > On 30 Jul 2003, simran wrote: > > > Right you are... what you mentioned is indeed the case... but looking > > back at my "real world application" examples... i have found data > > structures such as: > &

Re: [htmltmpl] Global Vars - not for all variables

2003-07-29 Thread simran
;, last_name => 'Paul' }, { first_name => undef, last_name => 'Jones' }, ]; (Note: the undef as opposed to "") With the above data structure, global_vars does not produce the result "i expect" as i expect first_name to be blank/unset in the

Re: [htmltmpl] Global Vars - not for all variables

2003-07-29 Thread simran
name => "james", last_name => 'Paul' }, { first_name => "", last_name => 'Jones' }, ]; $template->param(first_name => "simran"); $template->param(users => $data); -- Main User: First Name:

Re: [htmltmpl] Global Vars - not for all variables

2003-07-28 Thread simran
Sounds like a mighty fine feature to me. Something i can see myself using quite a bit I have a few scenarios myself where i want one or two particular variables to be global, but not the rest, currently, i iterate over my loop structure and insert the global variable into every "row". The abo

Re: [htmltmpl] Formating p-th column

2003-07-07 Thread simran
Looks like you might need to use HTML::Template::Expr to do what you want... On Tue, 2003-07-08 at 00:43, Wojciech Pietron wrote: > Hi, > > I want to output a matrix with HTML::Template. The matrix has n rows > (n>5) and m columns (m>5). For example: > > $matrix = > [ >{one=>1, two=>2, th

Re: [htmltmpl] Trimming whitespace

2003-02-10 Thread simran
On Tue, 2003-02-11 at 05:27, Jay 'Whip' Grizzard wrote: > On Fri, Feb 07, 2003 at 12:54:59PM -0500, Sam Tregar wrote: > > On Fri, 7 Feb 2003, Drew Taylor wrote: > > > > > Is there a way to trim the extra whitespace\newlines from the final output? > > > I didn't notice anything in the docs so I tho

[htmltmpl] Re: Sorting withing Loops...

2003-02-05 Thread simran
subroutine as part of the core. Sorting data (in scripts is not that uncommon) so perhaps the sort_data subroutine would be good as part of the core? simran. On Thu, 2003-02-06 at 16:24, simran wrote: > Hi Sam, at all, > > I have developed a patch to enable sorting within loops speci

[htmltmpl] Sorting withing Loops...

2003-02-05 Thread simran
ill apply. (aka, any sort criteria given with the second/subsequent usage of the loop in the same template will be ignored). = Do others think its a useful feature/patch? If so, Sam, can i please req

Re: [htmltmpl] Slow CGI when linking to a CSS or JS

2003-01-21 Thread simran
On Wed, 2003-01-22 at 07:42, Howard Kim wrote: >Hello Cees, > >I know keepalive is on. How would I know if the server is in 'single > process mode'? Where do I look for that -X switch? I'm working with > one of our sysadmins for the server-side stuff. I'm really just a > programmer

Re: [htmltmpl] Slow CGI when linking to a CSS or JS

2003-01-19 Thread simran
It doesn't sound like a Template issue... i'd say the issue is almost definitely with the javascript the script is probably loading an image or the likes from another server which is slower giving the impression of the page being loaded slower... On Sat, 2003-01-18 at 09:56, Howard Kim wrote

RE: [htmltmpl] ElseIF syntax...

2002-11-26 Thread simran
translations) - in this case, without the elsif (having to use only if's and else's) we would start getting very very deep nested if structures, but they work :-) Thanks again for the time you took to write your email, i got quite a few ideas from it and it helped a lot. chee

RE: [htmltmpl] ElseIF syntax...

2002-11-20 Thread simran
ow i was using it for PDA's as well, then i might want to show error messages (based on codes) and associated help that make more sense to PDA users. simran. On Wed, 2002-11-20 at 21:05, Gabriel Fortuna wrote: > Hi Simran... > > Bear in mind that doing this e

[htmltmpl] ElseIF syntax...

2002-11-19 Thread simran
t two error messages, i could nest the if's but i have a situation where i might have hundreds!!! simran. --- This sf.net email is sponsored by: To learn the basics of securing your web site with SSL, click here to get a FREE TRIAL of a T

Re: [htmltmpl] HTML::Template and SSI

2002-11-10 Thread simran
developing in mod_perl. If what you want is include a file (and not really a "virtual" location) then you might want to symlink (unless you want to use the template path or full path etc...) the file to the current directory and do a simple tmpl_include. simran. On Fri, 2002-11-08 a

[htmltmpl] Re: ANNOUNCEMENT: HTML::Template 2.6

2002-08-29 Thread simran
ariable now available when > loop_context_vars is set (Simran Gambhir) > >- New Feature: The default attribute allows you to specify > defaults for tags. > >- Bug Fix: fixed parser to reject s with no names. > (crazyinsom

[htmltmpl] [bug?] odd number of elements in 'new' method call...

2002-08-18 Thread simran
current scripts breaking by doing it in the method listed just above. What say ye Sam? simran. --- This sf.net email is sponsored by: OSDN - Tired of that same old cell phone? Get a new here for FREE! https://www.inphonic.com/r.asp?r=so

Re: [htmltmpl] Re: Patches for HTML-Template-2.5.tar.gz

2002-07-24 Thread simran
On Thu, 2002-07-25 at 05:20, Sam Tregar wrote: > On Wed, 24 Jul 2002, Yunliang Yu wrote: > > > 4. TMPL_VAR can now have a default value > > > > > > Some people will like this, I imagine. Maybe call it "DEFAULT"? I think > I might take this as a separate patch. What do others think?

[htmltmpl] [patch] __counter__ variable

2002-07-11 Thread simran
t would be useful with pringing lists where you want them numbered, and also for things like: for Table tr's if using a the HTML::Template::Expr template... simran. On Thu, 2002-04-18 at 09:40, simran wrote: > Hi All, > > There has recently been brief mention/disc