Your example actually looks like a namespace disaster about to happen with &quot;id&quot;. Needs some prefixing and&#x2F;or improved naming conventions. I&#x27;m not really how making your template have &quot;less logic&quot; than your example would produce a usable template language.