Move text rendering to a separate template (text.erb). See #87.