I add two propositions (because the meaning of this features is defined by TG, and every implementation use file to store templates):
6. Plugin expose via an attribute the extension of template files, and it's in charge of the caller of insert/render to resolv template path.
7. instead of set/copy configuration data into the template engine, initialisation sets/"injects" the function. ( function with 2 parameters : the template-location and the file extension for template file. In this case I prefer the **kw (2) for injecting the function.
-- -------------------------------------------------------------- David "Dwayne" Bernard Freelance Developer
signature.asc
Description: OpenPGP digital signature

