如何在我们单击按钮时动态地将模板添加到另一个模板。请帮帮我。请尽可能给我举个例子。流星templete动态添加到另一个模板
<template name="temp1">
<table>
<tr>
<td><input class="btn btn-success" type="submit" name="submit" id="add" value="add"/></td>
</td>
</tr>
</table>
</template>
<template name="temp2">
<input type="text" value="" name='inp1'/>
</template>
当我们点击temp1中的添加按钮时,我们需要将temp2添加到temp1.Please帮助我。