How to avoid writing duplicate code in dtl InterSystems Ensemble
There is a question for Ensemble on Stackoverflow:
I have the below dtl. In the
foreach loop, I am just copying the same code in another part under an
if condition. How can I avoid this redundancy? Can I reuse using sub transformation?
Here is the dtl class file :https://docs.google.com/document/d/1snJXElyw13hAfb8Lmg5IaySc7md_DE8J40FB79hBaXU/edit?usp=sharing