Re: [htmltmpl] Re: HTML::Template bug report: Problems using cache

2005-12-02 Thread Mitar
Hi! On 12/1/05, Mathew Robertson <[EMAIL PROTECTED]> wrote: > That is a bit harsh... And if Sam was to put out a release with bugfixes, > what would it contain? I hope it was not. At least it was not meant to be. And I was thinking about those bugs: http://rt.cpan.org/NoAuth/Bugs.html?Dist=HTML-

Re: [htmltmpl] loop through a hash structure without knowing the hash keys?

2005-12-02 Thread Boon Chew
Well, I guess I should have explained the need of this with a more solid real world use case. Recently I am involved in a project using Krang, a CMS system written in Perl that utilizes HTML::Template. Now here is the thing, we are fairly new to the code base, but in a few days of going through t

Re: [htmltmpl] Speed

2005-12-02 Thread Octavian Rasnita
From: "Paul Baker" <[EMAIL PROTECTED]> > > > Is the speed of H::T affected if using the following options? > > And I'm not sure about die_on_bad_params, but I do believe > loop_context_vars and global_vars does add a performance hit because > the engine then has to generate or handle more vars insi

Re: [htmltmpl] Alternate loops

2005-12-02 Thread Jonathan Lang
Mathew Robertson wrote: > Hi Jonathan, > > I think the exampe of: > > @loop = ( >... >{value_set => 2, count_distribution => 1, sum_of_counts => 36 }, >... > ) > > is invalid, since you never generate the loop contruct like that. "invalid" may be too strong of a word; maybe you mean

Re: [htmltmpl] Speed

2005-12-02 Thread Paul Baker
On Dec 2, 2005, at 12:09 PM, Octavian Rasnita wrote: Hi, I have some questions that I couldn't find an answer for: Which way of "inserting" vars in HTML::Template is the fastest? (or it doesn't make any difference?) *snip* Someone can correct me if I'm wrong, but based on the usual perl sp

[htmltmpl] Speed

2005-12-02 Thread Octavian Rasnita
Hi, I have some questions that I couldn't find an answer for: Which way of "inserting" vars in HTML::Template is the fastest? (or it doesn't make any difference?) $ht->param(var1 => $var1, var2 => $var2, var3 => $var3); or $ht->param(var1 => $var1); $ht->param(var2 => $var2); $ht->param(var3 =

Re: [htmltmpl] Multiple templates within a template

2005-12-02 Thread Mark A. Fuller
From: cfaust-dougot <[EMAIL PROTECTED]> >I'm getting into the habit of making a single TMPL file (or new single HT >object) in which I will have anywhere from 3 to 5 different pages in it, each >within its own template if. > >From a performance standpoint, how bad is this? It sounds to me like

[htmltmpl] Multiple templates within a template

2005-12-02 Thread cfaust-dougot
I couldn't really find the answer I was looking for by search the archives, so I thought I would simply ask..   I'm getting into the habit of making a single TMPL file (or new single HT object) in which I will have anywhere from 3 to 5 different pages in it, each within its own template if. Quit

Re: [htmltmpl] loop through a hash structure without knowing the hash keys?

2005-12-02 Thread Webmaster Techcode.NET
- Original Message - From: Boon Chew I want a way to quickly display all the info in a var - a Dumper output if you will. But more than that, like in some other server-side language, you can query the column lists (or hash keys) and loop through those and use a piece of generic code

Re: [htmltmpl] Alternate loops

2005-12-02 Thread Mathew Robertson
Hi Jonathan, I think the exampe of: @loop = ( ... {value_set => 2, count_distribution => 1, sum_of_counts => 36 }, ... ) is invalid, since you never generate the loop contruct like that. Usually you would do something like: for ($min..$max) {# - loop through to

Re: [htmltmpl] loop through a hash structure without knowing the hash keys?

2005-12-02 Thread Mathew Robertson
Replied unzipped-content, off-list Jonathan Lang wrote: PS. I maintain a version of H::T which supports sub-classing so that you can create your own TMPL tags, see: http://members.optusnet.com.au/~mathew Nice, except that I can't extract it from the computer that I'm at (gr