% if ( $self->can('_export_path') && glob $self->_export_path('*') ) {
<a href="<%= url_for( controller => 'data', action => 'export' ) %>">export</a>
% }
% if ( $self->can('_export_path') && glob $self->_export_path('*') ) {
<a href="<%= url_for( controller => 'data', action => 'export' ) %>">export</a>
% }