Does TT have the capability to insert text at a remote location (as
opposed to the current location)?

Example: suppose you have a template that looks like:

<html>
<head>
[% INCLUDE header_stuff %]
</head>
<body>
  ...
  [% INCLUDE foo %]
  ...
</body>
</html>

and you want the macro foo to do the following:

1. emit some output at its location, and
2. add some text to the definition of header_stuff

For instance, foo might need some resource that you want loaded in the
<head> section.

Any ideas?

_______________________________________________
templates mailing list
[email protected]
http://mail.template-toolkit.org/mailman/listinfo/templates

Reply via email to