Append Layout from View or Controller Action?

How would one modify the layout from a view or controller action?

I would like to have an action that spits out some HTML right before the end of the document, but only this action.

Is there an elegant way to do this besides editting the layout itself?

Yes there is. Creating a new layout and that.