[Templates] unintended recursion

[prev] [thread] [next] [Date index for 2005/05/13]

From: Steve Kelem
Subject: [Templates] unintended recursion
Date: 16:11 on 13 May 2005
This is a multi-part message in MIME format.
--------------090708070704080200060507
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

I'm just getting started with the template-toolkit.  I have version 2.14 
on cygwin.

I'm trying to run the library template example from the book, pages 406-414.
I carefully cut-and-pasted the contents of each file from the downloaded 
chapter 11 code from OReilly, and checked it against the book for typos.

I get the following error:

% ./bin/build -a
ttree 2.78 (Template Toolkit version 2.14)

      Source: /home/skelem/public_html/ttbook/templates/src
 Destination: /home/skelem/public_html/ttbook/html
Include Path: [ /home/skelem/public_html/ttbook/templates/lib ]
      Ignore: [ \b(CVS|RCS|.svn)\b, ^#, \b(CVS|RCS|.svn)\b, ^# ]
        Copy: [ \.(gif|jpg|pdf|png)$, \.(gif|jpg|pdf|png)$ ]
      Accept: [  ]
      Suffix: [ tt2 => html, htm => html ]

  + index.html
  ! file error - recursion into 'site/logo'

(I turned recursion off in ttbook/etc/ttree.cfg, because it got into an 
infinite-depth recursion.)

templates/lib/site/logo contains:

[%- INCLUDE misc/image image=site.logo | trim -%]

Should this be

[%- INCLUDE misc/image image=site.url.logo | trim -%]

, because templates/lib/config/url defines site.url.logo?  But I tried 
that, and still got the recursion error.

Thanks for any help,
Steve Kelem

--------------090708070704080200060507
Content-Type: text/x-vcard; charset=utf-8;
 name="skelem.vcf"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
 filename="skelem.vcf"

begin:vcard
fn:Steve Kelem
n:Kelem;Steve
org:Element CXI
adr;dom:;;1815 McCandless Dr.;Milpitas;CA;95035
email;internet:steve.kelem@xxxxxxxxxx.xxx
title:Chief Architect
tel;work:408-934-8169
x-mozilla-html:TRUE
url:http://www.elementcxi.com
version:2.1
end:vcard


--------------090708070704080200060507--

_______________________________________________
templates mailing list
templates@xxxxxxxxxxxxxxxx.xxx
http://lists.template-toolkit.org/mailman/listinfo/templates

[Templates] unintended recursion
Steve Kelem 16:11 on 13 May 2005

Generated at 15:56 on 25 May 2005 by mariachi v0.52