xfrm_resource_wrapper_macros
<xf:if is="$resource.isExternalDownload()"> <xf:button href="{{ link('resources/download', $resource) }}"
<xf:if is="$resource.isExternalDownload()"> <xf:button target="_blank" href="{{ link('resources/download', $resource) }}"
<xf:else /> <xf:button href="{{ link('resources/download', $resource) }}"
<xf:else /> <xf:button target="_blank" href="{{ link('resources/download', $resource) }}"