embedded to template