[Templates] META failure to understand where I'm going wrong ...

[prev] [thread] [next] [Date index for 1997/01/14]

From: Robin Szemeti
Subject: [Templates] META failure to understand where I'm going wrong ...
Date: 12:22 on 14 Jan 1997
OK, Im going worng somewhere ...

I have a 'wrapper' template called mian.tt2 that lays out the basic page ..  
and sets the title and stuff ... under Apache::Template I have:

   TT2Process          main.tt2 
   TT2PreProcess       config 

and the wrapper I have [% PROCESS $template %] and in each template I have 
somting like [% META title ='FooBar' %] so far so good.

Then .. I needed to add suuport for different locales ...  I include an 
appriate <lang>.tt2 filel that populates a hash called lang with local 
specific key/val pairs ...


[% META title = lang.foobar.title %]

results in an unexpected token (lang) error ... I'm guessing that its all to 
do with the conext that META is processed in .. using string literals seems 
to work fine, trying anything that looks remotley like a variable seems to 
result in a painful death. 

clues welcome.

        -- 
        RapidCut CNC Technology

CNC Plasma Cutter
http://www.rapidcut.co.uk/

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

[Templates] META failure to understand where I'm going wrong ...
Robin Szemeti 12:22 on 14 Jan 1997

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