I did something like what you are asking. I basically created the view, but I did not associate it with the default layout. Thus, when loading a view, it contains only the HTML view, and not all additional functions from the default layout.
Sorry, I have no code for me.
source
share