<div class={{heartClass}} {{action "toggleFav"}} style={{heartStyle}}></div>
<div class="heartCount">
  {{likeCount}}
</div>

{{#if hasBlock}}
  {{yield}}
{{else}}
  <div class={{heartClass}} {{action "toggleFav"}} style={{heartStyle}}></div>
  <div class="heartCount">
    {{likeCount}}
  </div>
{{/if}}

Update template to support block parameter
Update template to support block parameter
