On Wed, 19 Nov 2003, Jason Lewis wrote:
> The thing I am wanting to do, is create a template, and then be able to feed
> it different data to produce different catalogues. IE give the layout some
> independance from the data.
I think you should really give more details. What do you mean with
"independence from data" (and what about IE???) ?
I would suggest the folowing:
1) write your versions of catalogues in LaTeX, without any TT.
2) Identify the common parts and the differences
3) identify the variables
4) implement the differences using [% IF %] and the variables
it should even be possible to have the template produced automatically
from the tex fiole and the data, by using Template::Generate
example
\documentclass{article}
\begin{document}
[% IF isCatalogueA %]
This is catalogue A
[% END %]
\begin{itemize}
[% FOREACH item=items %]
\item [% item.desr %] \dotfill [%item.price%]\\
[% END %]
\end{itemize}
\end{document}
--
Franco Bagnoli (franchino) <[EMAIL PROTECTED]> ([EMAIL PROTECTED])
virtual location: Dipartimento di Energetica "S. Stecco"
ultra-virtual affiliation: Centro Dinamiche Complesse (CSDC-Firenze)
real location: Dip. Matematica Applicata "G. Sansone", Universita' Firenze,
Via S. Marta, 3 I-50139 Firenze, Italy. Tel. +39 0554796422, fax: +39 055471787
_______________________________________________
templates mailing list
[EMAIL PROTECTED]
http://lists.template-toolkit.org/mailman/listinfo/templates