[Templates] Version 2.05 test script warnings

2001-09-12 Thread Axel Gerstmair
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

Re: [Templates] Filter for HTML entitification?

2002-01-21 Thread Axel Gerstmair
[...] 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

Re: [Templates] Filter for HTML entitification?

2002-01-20 Thread Axel Gerstmair
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

Re: [Templates] Can't locate Apache/Util.pm

2002-01-25 Thread Axel Gerstmair
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

[Templates] Problem with conditions in parser

2002-03-26 Thread Axel Gerstmair
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

Re: [Templates] installation

2003-02-15 Thread Axel Gerstmair
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

Re: [Templates] Template Toolkit verion 2.10

2003-07-27 Thread Axel Gerstmair
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,

Re: [Templates] sorting a hash

2003-09-30 Thread Axel Gerstmair
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',

[Templates] Bugs at Request Tracker on CPAN

2003-10-08 Thread Axel Gerstmair
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]

Re: [Templates] Beginner Question: A way around absolute paths?

2003-10-16 Thread Axel Gerstmair
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:

Re: [Templates] process lists of array_refs with Template-Toolkit?

2003-10-20 Thread Axel Gerstmair
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

Re: [Templates] dbi and interpolated variables in TT2

2003-11-11 Thread Axel Gerstmair
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

Re: [Templates] Template test failure help?

2003-12-10 Thread Axel Gerstmair
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

Re: [Templates] Template test failure help?

2003-12-10 Thread Axel Gerstmair
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

Re: [Templates] Modules and named parameters

2003-12-17 Thread Axel Gerstmair
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 =

[Templates] New Release?

2004-01-06 Thread Axel Gerstmair
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

Re: [Templates] Version 2.11 Released

2004-01-06 Thread Axel Gerstmair
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]

Re: [Templates] Developer release 2.11a

2004-01-06 Thread Axel Gerstmair
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

Re: [Templates] Developer Release 2.11b

2004-01-07 Thread Axel Gerstmair
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

Re: [Templates] Interpolating tags within tags

2004-08-23 Thread Axel Gerstmair
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

Re: [Templates] properly accessing variables and content processing with TT2

2004-08-25 Thread Axel Gerstmair
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

Re: [Templates] FOREACH loop problem: variation in versions?

2004-08-26 Thread Axel Gerstmair
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

Re: [Templates] Array of hashes or hash refs

2004-09-24 Thread Axel Gerstmair
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