Just wanted to come back and say that this works perfectly. This was the final code that I used:
function template_render_output( $output, $settings ) {
global $post;
// Modify the output
$output = '<a href="' . get_permalink($post->ID) . '">' . $output . '</a>';
// Always return in WP filters
return $output;
}
add_filter( 'custom-layouts/template/render_output', 'template_render_output', 10, 2 );
Thanks a lot!