Render Rails templates to a string from any class.