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 [EMAIL PROTECTED] http://lists.template-toolkit.org/mailman/listinfo/templates
