- page = capture do
  %p= t '.text1'
  %p= t '.text2'

= render 'error', title: t('.title'), type: :error, page: page