I have various pages that need multiple content_for
at the top i.e:
- content_for :title, AppConfig.product['slogan']
- content_for :class, 'brand'
That are used in my layout:
== render 'layouts/top_wrapper'
main[class="view-#{yield(:class)}-wrapper"]
section[class="content-outer-wrapper"]
div[class="row"]
div[class="large-12"]
div[class="content-inner-wrapper"]
div[class="row"]
div[class="large-12 large-centered columns text-center section-title"]
h1
== yield(:title)
div[class="row"]
div[class="large-12 large-centered columns"]
== yield
== render 'layouts/bottom_wrapper'
I was wondering if there is a way to merge them together into a single content_for?