Hi all,
I've just installed the new version 2.05 of Template Toolkit and
everything seems to work fine. The new XS stash is just great!!
During making the tests I got two errors/warnings. The first problem
was t/file.t complaining that it did not find 'splitdir' but I got
quickly rid of it by
[...]
this must be:
require Apache::Util;
use() is always run at compile time.
[...]
Thank you, Stas, for this hint! I didn't know that.
It's fine that the full filter functionality is now integrated.
Additionally, I'd suggest to document in the HTML plug-in that there
is a separate
Hi all,
At last, I've created a patch for Template::Filters that introduces a
new filter function html_all, which escapes all special characters in
an HTML text. The filter tries to use either Apache::Util or
HTML::Entities and sets up the appropriate filter function at module
load time. I don't
Hello David,
[...]
I get this error repeated a few dozen times at the top of the query.cgi
page in Bugzilla:
Can't locate Apache/Util.pm in INC (INC contains: .
/usr/local/lib/perl5/5.6.0/i586-linux /usr/local/lib/perl5/5.6.0
/usr/local/lib/perl5/site_perl/5.6.0/i586-linux
Hi Andy,
if you are already aware of this, please just ignore it.
I've just stumbled over a bug (or feature?) in the template parser. I
have something like this in my template code:
[% FOREACH i = [1..12];
current_month = month - i;
current_month = current_month + 12 IF
Hi Bernie,
when I run the Makefile.PL I get the following errors:
Can't locate File/Temp.pm in @INC (@INC contains: ./lib
/usr/lib/perl5/5.6.0/i386-linux /usr/lib/perl5/5.6.0
/usr/lib/perl5/site_perl/5.6.0/i386-linux
/usr/lib/perl5/site_perl/5.6.0 /usr/lib/perl5/site_perl .) at
On Saturday, July 26, 2003 at 03:19, Kenny Gatdula wrote:
After I ignore the tests, and make install, I ran t/date.t by hand.
This was on 5.6.1 and 5.8 on Win32. I happily ignored the failures,
but, thought you'd like to know.
[...]
Argument isn't numeric in localtime at t/date.t line 66,
On Tuesday, September 30, 2003 at 16:00, Dave Cash wrote:
On Tue, 30 Sep 2003, Tony Bowden wrote:
I don't know of any idiom use native TT2 virtual methods
A simple hash.sort should do the trick, like so
[%- hash = { '1' = 'Camille',
'2' = 'Andrew',
'3' = 'Lili',
Hi Andy,
while you are at applying fixes and patches and answering so much
mails, :-), could you have a look at the bugs on the CPAN Request
Tracker [1] and close the tickets that have been taken care of. I
think most of the problems have already been fixed.
Thank you very much,
Axel
[1]
Hello Kip!
On Thursday, October 16, 2003 at 08:41, Kip Lawrence wrote:
[...] I am trying to decide how best to write my templates.
Currently I have three files... header, footer, and index.tt2. The
extension .tt2 is routed to Apache::Template.
In the Apache error_log I see the following:
On Monday, October 20, 2003 at 11:56, mt wrote:
i want to know if it is in general possible to process lists of
array_refs with Template-Toolkit.
[...]
is it possible to process arrays of array, hashes of arrays, lists of
array_refs with Template?
Sure, Template Toolkit supports all these
Hi Ken!
On Tuesday, November 11, 2003 at 22:52, Ken Anderson wrote:
[...]
[% FOREACH monthname = DBI.query('SELECT DATE_FORMAT(NOW() +
INTERVAL $count month, \'%M %Y\') as thismonth') %]
[% monthname.thismonth %]
[% END %]
But... $count isn't being interpolated
On Wednesday, December 10, 2003 at 01:35, Bryan Whitehead wrote:
I ran this:
perl -MCPAN -e 'force install Template'
When you invoke the Perl interpreter with -e, shouldn't the argument
read: -e 'force(install, Template)' or something like that because
you have to specify Perl code and not CPAN
Hi Bryan,
I get this error durring the make test part. Is this a know error?
If so what is the workaround (besides not using Solaris)?
t/date...ok 24/33Argument %s isn't numeric in localtime at
t/date.t line 66, DATA line 1.
FAILED 25: - template text 11 did not match expected
On Wednesday, December 17, 2003 at 18:30, Andy Williams wrote:
In my HTML file I have the following:
[% FOREACH br = prod.getCategory(category = XYZ) %]
# do something with br
[% END %]
Then in my code I have this:
my $prod = new Prod();
$vars-{product} = {
getCategory =
Hello Andy,
could you make a new public release of TT2? Almost half a year has
passed since the last public release and there are quite a few useful
new features and helpful bugfixes in the current developer version. It
would be more convenient to have an up-to-date version on CPAN. :-)
Best
Thanks to a prod from Axel, version 2.11 is now released and on
its way to CPAN.
Cool, that was fast! Thank you very much, Andy!!
Best regards,
Axel
___
templates mailing list
[EMAIL PROTECTED]
Developer release 2.11a fixes the t/date.t bug and the
Template::Grammar version number.
Looks good. The tests run successfully under both RedHat Linux and
Windows XP using Perl 5.8.
BTW, everything was fine in release 2.11, too, but I'm located in
Germany and the date test didn't break in my
On Wednesday, January 7, 2004 at 17:35, Andy Wardley wrote:
There's a new developer release, version 2.11b, which include Myk's patch
for the component bug.
Again, everything seems to be fine under both Windows XP and RedHat
Linux using Perl 5.8.
Best regards,
Axel
Hi Chris,
On Monday, August 23, 2004 at 19:25, Chris Ochs wrote:
There are a limited number of configuration options that we want to
store in template variables, but we dont' want our clients to have
to edit template pages directly just for these few variables.
What about creating template
On Wednesday, August 25, 2004 at 16:32, erob wrote:
Sorry for being unclear about the real problem..
To recap, it's quite difficult to manage multiple variables in the same
template (bad idea).
Can you give us at least an example why you have to manage multiple
variables? I really don't
Hi Loïc,
On Thursday, August 26, 2004 at 14:34, Loïc Paillotin wrote:
I read that both syntax were correct in the Badger Book(which documents
2.10), so i just wanted to check if my problem is only due to the fact
that 2.06 doesn't support FOREACH x IN y.
Yep. The IN operator in the FOREACH
On Friday, September 24, 2004 at 01:39, Roderick A. Anderson wrote:
I'm querying a MS SQL Server database and returning multiple tuples per
query. I need to display of them in one document and the FOREACH looks
like the ticket but this appears to be a strange process need.
[...] I now need
23 matches
Mail list logo