Re: Why doesn't this work: INSERT in PROCESS block.
"Kiss Gabor (Bitman)" <kissg-8/[email protected]> Wed, 29 Jan 2014 07:18:16 +0100 (CET)
| Newsgroups | gmane.comp.lang.perl.modules.template-toolkit |
|---|---|
| Message-ID | <[email protected]> |
> [% PROCESS header.inc > Title = "Instant Trees -- Just add water" > Desc = "Sherwood's Forests advice on getting your own forest quickly." > [% INSERT last-modified-gmt.inc %] > %] > > When I run ttree it fusses: > > ! file error - parse error - Solutions/Instant_Forest.tt2 line 1-5: > unexpected token (%) > [% PROCESS header.inc > Title = "Instant Trees -- Just add water" > Desc = "Sherwood's Forests advice on getting your own forest quickly." > Last_Major_Modification = "Tue 28 Jan 2014 20:23:42 MST" > [% INSERT last-modified-gmt.inc %] I guess nesting is not allowed. The inner %] closed the outer [%. Outer %] caused syntax error in parser. Try to omit inner [% %]. Gabor