Module: SatanicPages::LayoutHelper
- Defined in:
- lib/satanic_pages/layout_helper.rb
Instance Method Summary collapse
-
#render_layout(layout, **kwargs, &block) ⇒ Object
Thank you Sitepress for this lil' goodie https://github.com/sitepress/sitepress/blob/738aae7eaef61b494ad90786bc9f796374088ee1/sitepress-server/rails/app/helpers/application_helper.rb#L18.
Instance Method Details
#render_layout(layout, **kwargs, &block) ⇒ Object
Thank you Sitepress for this lil' goodie https://github.com/sitepress/sitepress/blob/738aae7eaef61b494ad90786bc9f796374088ee1/sitepress-server/rails/app/helpers/application_helper.rb#L18
7 8 9 |
# File 'lib/satanic_pages/layout_helper.rb', line 7 def render_layout(layout, **kwargs, &block) render(html: capture(&block), layout: "layouts/#{layout}", **kwargs) end |