[Templates] Bug in Template 2.13

[prev] [thread] [next] [Date index for 2004/05/20]

From: Simon Matthews
Subject: [Templates] Bug in Template 2.13
Date: 08:19 on 20 May 2004
There is a small problem with VIEWS and compilation in TT 2.13.  The following 
template:


[% VIEW sam
    foo = 'bar' %]
                                                                                
In the view
                                                                                
[% END # view %]
                                                                                
<h1>Some stuff </h1>
                                                                                
[% sam.foo %]

-------------------------------------------------------

Gives a perl warning as follows:

Useless use of private variable in void context at /tmp/ttc/test.tt2 


The error is in Directive.pm at line 797.  I think the line just needs removing.

Regards

S






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

[Templates] Bug in Template 2.13
Simon Matthews 08:19 on 20 May 2004

Re: [Templates] Bug in Template 2.13
Andy Wardley 08:48 on 20 May 2004

Generated at 08:55 on 15 Mar 2005 by mariachi v0.52