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
> 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
> >
> > >
>
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
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
[...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;
, 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
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) {
> >
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 {
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
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
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:
> &
;, 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
name => "james", last_name => 'Paul' },
{ first_name => "", last_name => 'Jones' },
];
$template->param(first_name => "simran");
$template->param(users => $data);
--
Main User:
First Name:
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
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
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
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
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
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
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
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
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
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
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
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
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
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?
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
28 matches
Mail list logo