Cells

на сайте с 09 декабря 2022, 05:37
View components for Ruby and Rails. Cells allow you to encapsulate parts of your UI into components into view models. View models, or cells, are simple ruby classes that can render templates. Nevertheless, a cell gives you more than just a template renderer. They allow proper OOP, polymorphic builders, nesting, view inheritance, using Rails helpers, asset packaging to bundle JS, CSS or images, simple distribution via..