This is what does the module Reference, but for blocks of page. Nevertheless, you can reuse the view helper.
Whatever, I’m implementing this in my next version of the new resource template management in a few week. Nevertheless, it will probably work only for resource with a template.