In fact, you cannot. Rails does not use skew for view templates.
One of the reasons it would be difficult to do this is that during normal operation, ERB actually โcompilesโ ruby โโcode, not text, for performance. Those. The erb template compiles once to live in ruby โโcode, which is then executed each time it needs to be displayed in a different context.
I do not know how to do what you want. Of course, you can roll yourself. No one says you need to call the "render" template "to render. Don't forget that you can always
render :text => any_method_that_returns_a_string
You can transfer things through Tilt yourself. You can see some performance degradation compared to what Rails usually does.
source share