A coworker and I have looked pretty hard to no avail.  I am having trouble
getting tags to parse out in a declaration.

For my PRE_PROCESS I have 'conf/forms', which is as below

[%
  path_form = "[% USE FillInForm %][% FILTER fillinform fdat => fill %]
   <FORM
      NAME      = PATHFORM
      ACTION    = [% env.script_name %]
      METHOD    = post
      STYLE     = 'margin:0'
      ONSUBMIT  =
'if(document.validate_form){if(document.validate_form(this,arguments))
return true; else return false;}'
    >"
  path_form_end = "</FORM>[% END %]"
%]

I want to be able to do something like this in any page

[% path_form %]
all the form stuff
[% path_form_end %]

The big thing is that I need the same onsubmit for each page to hook my
javascript validation.  Adding in the FillInForm seems like a nice touch.

Anyway, when TT parses conf/forms, I get

file error - parse error - conf/forms line 1-2: unexpected token ("[%)
  [% path_form = "[% USE FillInForm %]

It appears that TT doesn't like to evaluate embedded tags in the
declaration.  I have tried CONCAT, <<, _ and probably a few other things
with no luck.

Thanks,
Earl

_______________________________________________
templates mailing list
[EMAIL PROTECTED]
http://lists.template-toolkit.org/mailman/listinfo/templates

Reply via email to