{{if $categories}}
{{foreach $categories as $cat}}  {{$cat.term}}  {{/foreach}}
{{/if}}