[Templates] filtering includes

Rafiq Ismail (ADMIN) rafiq@joshua.dreamthought.com
Tue, 5 Nov 2002 13:50:41 +0000 (GMT)


On Tue, 5 Nov 2002, darren chamberlain wrote:

> * Rafiq Ismail (ADMIN) <rafiq@joshua.dreamthought.com> [2002-11-05 08:11]:
> > On 5 Nov 2002, Simon Wilcox wrote:
> > > On Tue, 2002-11-05 at 12:10, Rafiq Ismail (ADMIN) wrote:
> In addition to all the above, I'd wrap the whole thing in a macro or
> wrapper as well -- eventually you'll want to stop using the old method,
> yes?
>
>   # frob.tt
>   [% MACRO FROB(file) %]
>   [% FILTER substitute model.qr_left, model.qr_right %]
>   [% INSERT $file %]
>   [% END %]
>
>   # Normal template
>   [% PROCESS frob.tt %]
>
>   [% FROB('my/file') %]
>   [% FROB('your/file') %]
>   [% FROB('their/file') %]

ok, thanks for the tips.  Fixed the subroutine reference and have just
tried it out.  I think that my original plan might have been over kill.
Cheers again.

R.