Si puedes mejorar el código, bienvenido!
<template id="template">
<li class="list-group-item d-flex justify-content-between align-items-center">
<span class="lead">Frutilla</span>
<span class="badge bg-primary rounded-pill">12</span>
</li>
</template>