When I insert a template into another template, both templates may contain html elements of the same id. But there will be no warnings or errors reported in the browser. This may lead to bugs when involving javascript to handle these elements. How could I solve this problem without paying particular attention to name the elements.
E.g.
<template name="A">
{{> treatment1}}
{{> treatment2}}
</template>
<template name="treatment1">
<input id="age" type="number"...>
</template>
<template name="treatment2">
<input id="age" type="number"...>
</template>
After template A rendered, there will be two elements of the same id “age”.