-toolkit.org/mailman/listinfo/templates
___
templates mailing list
templates@template-toolkit.org
http://mail.template-toolkit.org/mailman/listinfo/templates
--
C. Chad Wallace, B.Sc.
The Lodging Company
http://www.lodgingcompany.com
() );
--
C. Chad Wallace, B.Sc.
The Lodging Company
http://www.lodgingcompany.com/
OpenPGP Public Key ID: 0x262208A0
signature.asc
Description: PGP signature
___
templates mailing list
templates@template-toolkit.org
http://mail.template-toolkit.org
At 11:19 AM on 20 Mar 2010, dark0s wrote:
Can I capture (to pass) the success tt2 variable in login.cgi perl
script?
Everything sent to your CGI has to be done in hidden inputs. So put a
hidden input in your form:
input type=hidden name=success value=[% success %] /
--
C. Chad Wallace
use the dollar sign here.
In TT, dollar signs are used for dereferencing. query is not a
reference, so you don't get anything.
--
C. Chad Wallace, B.Sc.
The Lodging Company
http://www.lodgingcompany.com/
OpenPGP Public Key ID: 0x262208A0
signature.asc
Description: PGP signature
that 'items.sort' should sort based on the items keys,
but it doesn't. For that, you would use 'items.keys.sort'.
'items.sort' sorts the keys based on their corresponding values in the
hash (all of which, in this case, are hash references and are probably
not useful for sorting).
--
C. Chad Wallace
]$
---cut---
--
C. Chad Wallace, B.Sc.
The Lodging Company
http://www.lodgingcompany.com/
OpenPGP Public Key ID: 0x262208A0
signature.asc
Description: PGP signature
___
templates mailing list
templates@template-toolkit.org
http://mail.template-toolkit.org
At 10:36 AM on 20 Dec 2009, Andrew Black wrote:
On 15 Dec 2009 18:39, C. Chad Wallace cwall...@lodgingcompany.com
wrote:
RAWPERL is a Bad Idea, and you need to Find Another Way.
Chad - can you explain why RAWPERL should never be used (if I
understanding you correctly )
It goes against
:
[% request.param('param1') %]
Ronald
--
C. Chad Wallace, B.Sc.
The Lodging Company
http://www.lodgingcompany.com/
OpenPGP Public Key ID: 0x262208A0
signature.asc
Description: PGP signature
___
templates mailing list
templates@template-toolkit.org
http
At 8:13 PM on 27 Nov 2009, Octavian Râsnita wrote:
From: C. Chad Wallace cwall...@lodgingcompany.com
At 8:45 AM on 26 Nov 2009, Randal L. Schwartz wrote:
Octavian == Octavian Râsnita orasn...@gmail.com writes:
Octavian but if I put just simple html code in the database
. So, you need a value for the 'env' param.
--
C. Chad Wallace, B.Sc.
The Lodging Company
http://www.skihills.com/
OpenPGP Public Key ID: 0x262208A0
signature.asc
Description: PGP signature
___
templates mailing list
templates@template-toolkit.org
.
___
templates mailing list
templates@template-toolkit.org
http://mail.template-toolkit.org/mailman/listinfo/templates
--
C. Chad Wallace, B.Sc.
The Lodging Company
http://www.skihills.com/
OpenPGP Public Key ID: 0x262208A0
signature.asc
Description
error - SCALAR(0x8943798): not found.
--
C. Chad Wallace, B.Sc.
The Lodging Company
http://www.skihills.com/
OpenPGP Public Key ID: 0x262208A0
signature.asc
Description: PGP signature
___
templates mailing list
templates@template-toolkit.org
http
]$ tpage
[% cap = 'capitalised' | upper %]
[% cap %]
CAPITALISED
cwall...@ws80:~[09:20]$ perl -MTemplate -e 'print $Template::VERSION, \n'
2.19
I'm surprised I've never noticed that before...
--
C. Chad Wallace, B.Sc.
The Lodging Company
http://www.skihills.com/
OpenPGP Public Key ID: 0x262208A0
) %]
^
Get rid of the dollar sign.
(This should return a Net::IP object with 1.2.10.130/29)
I don't seem to be getting an error, or any kind of output.
connector2 = [% c2_net.prefix %]
returns
connector2 =
--
C. Chad Wallace, B.Sc.
The Lodging Company
http
, and the template cache directory is no
longer accessible to the websites. I've implemented a work-around in
my boot scripts, but I didn't realize until just now that I could just
place my cache directory somewhere else. :-)
--
C. Chad Wallace, B.Sc.
The Lodging Company
http://www.skihills.com/
OpenPGP
haven't tried it. If CACHE_SIZE also applies to
the COMPILE_DIR caching, it wouldn't be a good idea to set it to zero,
because COMPILE_DIR is useful for everyone.
--
C. Chad Wallace, B.Sc.
The Lodging Company
http://www.skihills.com/
OpenPGP Public Key ID: 0x262208A0
Debian Hint #16
that doing it on both ends
results in too much chomping, so I usually just put them at the
beginning.
See the 'Chomping Whitespace' section in perldoc
Template::Manual::Syntax.
--
C. Chad Wallace, B.Sc.
The Lodging Company
http://www.skihills.com/
OpenPGP Public Key ID: 0x262208A0
Debian Hint #20
%]
[% END %]
[EMAIL PROTECTED]:~[18:59]$ cat tpage-output
liHome/li
li class=list-currentWho it's for amp; why?/li
[EMAIL PROTECTED]:~[18:59]$
---
What are you expecting for output? And what do you get instead? Does
mine look like it's working to you?
TTYL.
--
C. Chad Wallace, B.Sc
At 10:39 AM on 15 May 2008, Robert Hicks wrote:
C. Chad Wallace wrote:
At 7:05 PM on 14 May 2008, Robert Hicks wrote:
Because I am building 2 types of emails...I have 2
$template-process commands and because it is in a loop and I have
5 users, I get five error message when a template
the unique
ones to STDERR.
I am not sure if that is enough to go on.
How about: instead of calling die, you save the error info in a hash,
and then at the end of the loop, warn the unique ones.
--
C. Chad Wallace, B.Sc.
The Lodging Company
http://www.skihills.com/
OpenPGP Public Key ID
database
- --
C. Chad Wallace, B.Sc.
The Lodging Company
http://www.skihills.com/
OpenPGP Public Key ID: 0x262208A0
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFHoN4nKeSNHCYiCKARApPyAJ9WnAkiarDtAteJg016Ur
://search.cpan.org/dist/Template-Plugin-Number-Format/Format.pm
For example: (untested, since I don't have the plugin installed)
[% USE Number.Format( THOUSANDS_SEP = ',' ) %]
[% 1000 | format_number %]
[% 100 | format_number %]
- --
C. Chad Wallace, B.Sc.
The Lodging Company
http://www.skihills.com
$hash = {
map { ($_ = shift @args) } @$argnames,
_ERROR = '',
DEBUG = 0,
};
warn Dumper($hash);
/cut
with and without braces around map.
SM
SM
SM --
SM Sergey Martynoff
SM
- --
C. Chad Wallace, B.Sc
. Chad Wallace, B.Sc.
The Lodging Company
http://skihills.com/
OpenPGP Public Key ID: 0x262208A0
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFFIV5AKeSNHCYiCKARAhjYAKC96Y5NDJqLJltkGIT1ONDcP+Nw5ACgt+Lx
yiEc001A
called Table. I certainly wouldn't like
that if I were an SQL database. :-)
HTH.
- --
C. Chad Wallace, B.Sc.
The Lodging Company
http://skihills.com/
OpenPGP Public Key ID: 0x262208A0
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.3 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http
;
}
In my defense, I must say that I've been using this piece of code,
unmodified, for over a year in every TT script that I've written so
far--so you can understand how I took it for granted.
Sorry for the misinformation!
- --
C. Chad Wallace, B.Sc.
The Lodging Company
http://skihills.com/
OpenPGP
.
--
C. Chad Wallace, B.Sc.
The Lodging Company
http://skihills.com/
OpenPGP Public Key ID: 0x262208A0
___
templates mailing list
templates@template-toolkit.org
http://lists.template-toolkit.org/mailman/listinfo/templates
C. Chad Wallace
Gesendet: Mittwoch, 3. August 2005 22:13
An: templates@template-toolkit.org
Betreff: Re: [Templates] Problem accessing hash-ref-data in a filter (hash ref
gets stringified)
[EMAIL PROTECTED] wrote:
I try to process data from a hash ref in a filter, but it seems
, you haven't already implemented it yourself. :-)
I've tested this a bit, and it works--at least, it reuses the Template
object.
Please let me know what you think...
Thanks,
Chad.
--
C. Chad Wallace
The Lodging Company
http://skihills.com/
OpenPGP Public Key ID: 0x262208A0
--- lib/CGI/Application
Andy Wardley wrote:
Rather than copying the entire variable stash each time we need to
create a localised variable scope (e.g. INCLUDE), TT3 creates a new,
empty variable stash with a parent link pointing upwards to the stash
of the calling context.
When a variable is first accessed, the
Simon Wistow wrote:
[...]
package UNIVERSAL;
sub keys {
my $self = shift;
return unless ref $self;
return unless ref $self $self-isa( 'HASH' );
...otherwise, the next line is going to die on any object reference that
isn't a hash.
return keys %{$self};
}
Arshavir Grigorian wrote:
DateTime::Duration obviously does not overload comparison operators, but
where am I comparing anything ? Calling the years() method in the Perl
code outside the template works fine.
Another problem is that the line numbers are incorrect (8 lines off).
Line 28 in my
Matthias Schroeder wrote:
So you can't be sure about the sequence unless you specify files on
commandline, but anyway i think ist a bad idea to share global vars between
files, why not use small include-file per directory where you are setting that
var (or something which helps you to decide
33 matches
Mail list logo