Currently templates and their instances are supposed to take a defined
number of arguments as defined by their ObjectType and then execute the
template code (with certain key value settings).
There is no explicit support for environments.
Now I wonder if this is something that would need changing. If so how?
What are the options?
1) use the current mechanism the way it is and
1.1) if there is a need to execute code at the end of the environment
provide an additional ObjectType (and additional templates)
1.2) Have the template that requires code at the end of the
environment store that in some token list \l_template_end_code_tl and in
the standard end code for an environment execute
\l_template_end_code_tl
\tl_clear:N \l_template_end_code_tl
Alternatively
2) Provide a set of additional declaration and usage commands, e.g.
\DeclareEnvTemplate, etc that have one more argument holding and using
the end code
3) others? ...
thoughts anybody?
cheers
frank