Closed sqlalchemy-bot closed 6 years ago
Michael Bayer (@zzzeek) wrote:
since I don't have the resources to work on this question, there actually are some folks on the list who often do so your best bet is to use the list:
Changes by Michael Bayer (@zzzeek):
Migrated issue, originally created by Bertrand MICHEL (@bemichel)
Hi Mako team,
Sorry, this ticket is not really an issue, but moreover a question about the usage of Mako template, but I do not know whedre to post such question ?
I have a base mako template for a generic loop "loop.tmpl.for" :
From this loop, several implementations can inherit from this base mako described the generic loop. I give for exemple two implementations :
For several reason, for a scenario, I want to make a fusion of every implementation that are involved in the scenario.
For the moment, I can write by hand a mako template called fusion of this 2 implementation exemple "fusion.tmpl.for" :
But my question is there a way with mako to create dynamically this fusion template with any number of implementation ?
A way to solve my problem is to write a "dynamic_fusion.tmpl.for" with to Python :
Is it the proper way to create this "dynamic_fusion.tmpl.for" ?
Thanks for your help !
Best regards.
PS: you can find the code in the archive attached to this ticket !
Bertrand M.
Attachments: DynamicFusion.tgz