Re: [Templates] Template2/lib/Template/Plugin/File.pm: bug in File.user method
On Mon, 2004-07-12 at 11:59 +0200, Lubomir Host wrote: Hi! [snip] This (one-character!) patch has still not been applied -- just trying to make sure it hasn't slipped through the cracks. - Alex ---%--- --- Template2/lib/Template/Plugin/File.pm.orig2004-07-12 11:44:27.0 +0200 +++ Template2/lib/Template/Plugin/File.pm 2004-07-12 11:44:35.0 +0200 @@ -101,7 +101,7 @@ || return $class-throw($abs: $!); @$self{ @STAT_KEYS } = @stat; unless ($config-{ noid }) { - $self-{ user } = eval { getpwuid( $self-{ uid }) || $self-{ uid } }; + $self-{ user } = eval { getpwuid( $self-{ uid }) || $self-{ uid } }; $self-{ group } = eval { getgrgid( $self-{ gid }) || $self-{ gid } }; } $self-{ isdir } = -d $abs; ---%--- -- Networking -- only one letter away from not working ___ templates mailing list [EMAIL PROTECTED] http://lists.template-toolkit.org/mailman/listinfo/templates
Re: [Templates] TT Advocacy
On Tue, 2004-01-27 at 12:50, Dave Cross wrote: [snip] Does anyone thing that a list of sites using TT would be a useful addition to the TT web site? And, if so, shall I start to collate information? http://www.mit.edu/ 's top-level pages are static, built with TT2 and a custom overgrown tpage on steroids. http://whereis.mit.edu/ (the campus map) is dynamic TT2 - Alex -- Networking -- only one letter away from not working ___ templates mailing list [EMAIL PROTECTED] http://lists.template-toolkit.org/mailman/listinfo/templates
Re: [Templates] How to redirect template output into another file?
On Mon, 2003-09-15 at 21:25, Ivan Adzhubey wrote: Is there any easy way to configure template processing _from within the template itself_ so that the results will go into different file (files)? Use the redirect filter, inside a loop. The path you give to the redirect filter is relative to the output path. [% FOR u IN users %] [% FILTER redirect(path/to/${u.name}.html) %] html yadda yadda /html [% END %] [% END %] This _will_ leave you with an empty file from the template itself, but this is not usually a problem. - Alex -- Networking -- only one letter away from not working. ___ templates mailing list [EMAIL PROTECTED] http://lists.template-toolkit.org/mailman/listinfo/templates
Re: [Templates] first = first IF 0; clears first
On Sun, 2003-09-14 at 22:48, Brad Bowman wrote: I found some weird behaviour with TT2 2.07 (perl5.6.1, debian) Seems to be with both the perl XS stash. This is a well-known problem with tt2's parser. See the FAQ at: http://www.template-toolkit.org/docs/red/FAQ/FAQ.html#Why_doesn_t_b_a_b_IF_c_b_work_as_expected_ - Alex -- Networking -- only one letter away from not working. ___ templates mailing list [EMAIL PROTECTED] http://lists.template-toolkit.org/mailman/listinfo/templates
Re: [Templates] Simple parse error
On Wed, 2003-08-06 at 13:54, Edward Tsai wrote: Template::Constants::ERROR_FILE error - parse error - request.html.tmpl line 10: unexpected end of input [snip] ul [% FOREACH person = login_name %] li loginname is [% person %] You're missing the [% END %] to your FOREACH here -- TT2 is going looking throughout the rest of the template looking for it, and not finding it. Hence the unexpected end of input error. - Alex -- Networking -- only one letter away from not working ___ templates mailing list [EMAIL PROTECTED] http://lists.template-toolkit.org/mailman/listinfo/templates
Re: [Templates] Template Toolkit verion 2.10
On Thu, 2003-07-24 at 12:24, Andy Wardley wrote: Version 2.10 of the Template Toolkit is now available. [snip] I'm getting a failure in test 25 of t/date.t, because Solaris' strftime does not define the %s format (it isn't in the ANSI C standard). Not a bug in TT2 itself, just a bug in the tests. Also, what are the chances of getting the docs at http://www.template-toolkit.org/docs/ updated to 2.10? - Alex P.S. The MIT homepage now uses TT2 to regenerate 300+ pages of static HTML per day. Whee! -- Networking -- only one letter away from not working ___ templates mailing list [EMAIL PROTECTED] http://lists.template-toolkit.org/mailman/listinfo/templates