Module | Cell::ViewModel::Layout::External |
In: |
lib/cell/layout.rb
|
Allows using a separate layout cell which will wrap the actual content. Use like cell(…, layout: Cell::Layout)
Note that still allows the `render layout: :application` option.
Render | = | ->(content, model, layout, options) do # WARNING: THIS IS NOT FINAL API. return content unless layout = layout # TODO: test when invoking cell without :layout. |