cells
cells copied to clipboard
View components for Ruby and Rails.
Use layout.build instead of layout.new in Cell::ViewModel::Layout::External. Reason: allow layout class to be selected using context. I.e. builds { |_, context:, **| self::Mobile if context[:mobile] }
This PR fixes passing context into collections. This probably only affects Cells in rails (since cells-rails is providing the default context that is breaking the collection handling), so there's a...
The only way to communicate between an external layout and its content is through the `yield` call, while an internal layout can call all content cell methods. This patch adds...
Related to: https://github.com/apotonick/cells/issues/272 Ok, here is the raw module file. But still, after hundreds of attempts, i'm still not able to make it work as it should - using `t('.something')`...
Rails now has [recyclable cache keys](https://github.com/rails/rails/pull/29092). Is there any support for that?
It is possible to create a LICENSE file instead of just mention it at the end of the README? It will be very useful
I have a cell, `PanelCell`, which renders a bootstrap panel and `yield`s where the panel body belongs. I'm getting a `no block given (yield)` error when trying to render the...
I just tried to use Cells with a Rails 6 application, and failed when trying to generate a (non-model-based) form. Even though I included ActionView::Helpers::FormHelper into the cell, `form_with` (and...
4.1.3 is published, but gem is at 4.5 https://rubygems.org/gems/cells/versions/4.1.3
I see that someone else has had problems with Cells 4.x not following the standard conventions for naming templates. #460 But the solution is opaque . We have a large...