Ok unwrapped it so that the whole thing now looks like this:
[% 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
%]
Now ttree fusses:
! file error - parse error - Solutions/Instant_Forest.tt2 line 1-6:
unexpected token (INSERT)
I've groveled through the docs and it seems that directives are nested in
lots of places. Which is why I thought that this would work.
***
I have a solution, in that instead of modifying the template that PROCESSes
the header file, I put it in the header file itself. So I'm back in
production/ But I'd like to understand why it didn't work.
Respectfully,
Sherwood of Sherwood's Forests
Sherwood Botsford
Sherwood's Forests -- http://Sherwoods-Forests.com
780-848-2548
50042 Range Rd 31
Warburg, Alberta T0C 2T0
On 28 January 2014 23:19, Tom Molesworth <[email protected]> wrote:
> On 29/01/14 05:55, Sherwood Botsford wrote:
>
> [% 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 %]
> %]
>
>
> You have nested [% %] in there, try this:
>
>
> [% 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
> %]
>
> cheers,
>
> Tom
>
>
_______________________________________________
templates mailing list
[email protected]
http://mail.template-toolkit.org/mailman/listinfo/templates