I want to do a conditional rendering at the layout level based on the actual template has defined content_for(:an__area), any idea how to get this done?
I'm not sure of the performance implications of calling yield twice, but this will do regardless of the internal implementation of yield (@content_for_xyz is deprecated) and without any extra code or helper methods: