0

Up through Middleman 3 I could determine the layout of the current page like this.

current_page.data.layout

As of Middleman 4 this no longer works. How can I determine what the current layout is in 4+?

rb-
  • 2,315
  • 29
  • 41

1 Answers1

1

In Middleman 4, you can access the layout of a resource with resource.options[:layout].

Adam Hollett
  • 421
  • 2
  • 8