├── .github └── workflows │ └── ci.yml ├── .gitignore ├── CHANGES.md ├── Gemfile ├── README.md ├── Rakefile ├── TODO.md ├── cells.gemspec ├── lib ├── cell.rb ├── cell │ ├── abstract.rb │ ├── builder.rb │ ├── caching.rb │ ├── collection.rb │ ├── concept.rb │ ├── development.rb │ ├── escaped.rb │ ├── layout.rb │ ├── option.rb │ ├── partial.rb │ ├── prefixes.rb │ ├── self_contained.rb │ ├── templates.rb │ ├── testing.rb │ ├── twin.rb │ ├── util.rb │ ├── version.rb │ └── view_model.rb ├── cells.rb └── tasks │ └── cells.rake └── test ├── builder_test.rb ├── cache_test.rb ├── cell_benchmark.rb ├── cell_test.rb ├── concept_test.rb ├── context_test.rb ├── fixtures ├── bassist │ └── play.erb ├── cell_test │ └── song │ │ └── show_with_block.erb ├── comment │ ├── layout │ │ └── show.erb │ └── show │ │ └── show.erb ├── concepts │ └── record │ │ └── views │ │ ├── layout.erb │ │ ├── show.erb │ │ └── song.erb ├── inherit_views_test │ ├── popper │ │ └── tap.erb │ └── tapper │ │ ├── play.erb │ │ └── tap.erb ├── partial_test │ └── with_partial │ │ └── show.erb ├── partials │ ├── _show.html.erb │ └── _show.xml.erb ├── song │ ├── ivar.erb │ ├── show.erb │ ├── with_block.erb │ ├── with_erb.erb │ ├── with_html.erb │ ├── with_locals.erb │ └── with_options.erb ├── song_with_layout │ ├── happy.erb │ ├── merry.erb │ ├── show.erb │ └── show_with_layout.erb ├── templates_caching_test │ └── song │ │ └── show.erb └── url_helper_test │ └── song │ ├── edit.erb │ ├── with_block.erb │ ├── with_capture.erb │ ├── with_content_tag.erb │ ├── with_form_for_block.erb │ └── with_link_to.erb ├── layout_test.rb ├── partial_test.rb ├── prefixes_test.rb ├── property_test.rb ├── public_test.rb ├── render_test.rb ├── templates_test.rb ├── test_helper.rb └── testing_test.rb /.github/workflows/ci.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trailblazer/cells/HEAD/.github/workflows/ci.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trailblazer/cells/HEAD/.gitignore -------------------------------------------------------------------------------- /CHANGES.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trailblazer/cells/HEAD/CHANGES.md -------------------------------------------------------------------------------- /Gemfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trailblazer/cells/HEAD/Gemfile -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trailblazer/cells/HEAD/README.md -------------------------------------------------------------------------------- /Rakefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trailblazer/cells/HEAD/Rakefile -------------------------------------------------------------------------------- /TODO.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trailblazer/cells/HEAD/TODO.md -------------------------------------------------------------------------------- /cells.gemspec: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trailblazer/cells/HEAD/cells.gemspec -------------------------------------------------------------------------------- /lib/cell.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trailblazer/cells/HEAD/lib/cell.rb -------------------------------------------------------------------------------- /lib/cell/abstract.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trailblazer/cells/HEAD/lib/cell/abstract.rb -------------------------------------------------------------------------------- /lib/cell/builder.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trailblazer/cells/HEAD/lib/cell/builder.rb -------------------------------------------------------------------------------- /lib/cell/caching.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trailblazer/cells/HEAD/lib/cell/caching.rb -------------------------------------------------------------------------------- /lib/cell/collection.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trailblazer/cells/HEAD/lib/cell/collection.rb -------------------------------------------------------------------------------- /lib/cell/concept.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trailblazer/cells/HEAD/lib/cell/concept.rb -------------------------------------------------------------------------------- /lib/cell/development.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trailblazer/cells/HEAD/lib/cell/development.rb -------------------------------------------------------------------------------- /lib/cell/escaped.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trailblazer/cells/HEAD/lib/cell/escaped.rb -------------------------------------------------------------------------------- /lib/cell/layout.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trailblazer/cells/HEAD/lib/cell/layout.rb -------------------------------------------------------------------------------- /lib/cell/option.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trailblazer/cells/HEAD/lib/cell/option.rb -------------------------------------------------------------------------------- /lib/cell/partial.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trailblazer/cells/HEAD/lib/cell/partial.rb -------------------------------------------------------------------------------- /lib/cell/prefixes.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trailblazer/cells/HEAD/lib/cell/prefixes.rb -------------------------------------------------------------------------------- /lib/cell/self_contained.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trailblazer/cells/HEAD/lib/cell/self_contained.rb -------------------------------------------------------------------------------- /lib/cell/templates.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trailblazer/cells/HEAD/lib/cell/templates.rb -------------------------------------------------------------------------------- /lib/cell/testing.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trailblazer/cells/HEAD/lib/cell/testing.rb -------------------------------------------------------------------------------- /lib/cell/twin.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trailblazer/cells/HEAD/lib/cell/twin.rb -------------------------------------------------------------------------------- /lib/cell/util.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trailblazer/cells/HEAD/lib/cell/util.rb -------------------------------------------------------------------------------- /lib/cell/version.rb: -------------------------------------------------------------------------------- 1 | module Cell 2 | VERSION = "4.1.9" 3 | end 4 | -------------------------------------------------------------------------------- /lib/cell/view_model.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trailblazer/cells/HEAD/lib/cell/view_model.rb -------------------------------------------------------------------------------- /lib/cells.rb: -------------------------------------------------------------------------------- 1 | require "cell" 2 | -------------------------------------------------------------------------------- /lib/tasks/cells.rake: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trailblazer/cells/HEAD/lib/tasks/cells.rake -------------------------------------------------------------------------------- /test/builder_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trailblazer/cells/HEAD/test/builder_test.rb -------------------------------------------------------------------------------- /test/cache_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trailblazer/cells/HEAD/test/cache_test.rb -------------------------------------------------------------------------------- /test/cell_benchmark.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trailblazer/cells/HEAD/test/cell_benchmark.rb -------------------------------------------------------------------------------- /test/cell_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trailblazer/cells/HEAD/test/cell_test.rb -------------------------------------------------------------------------------- /test/concept_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trailblazer/cells/HEAD/test/concept_test.rb -------------------------------------------------------------------------------- /test/context_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trailblazer/cells/HEAD/test/context_test.rb -------------------------------------------------------------------------------- /test/fixtures/bassist/play.erb: -------------------------------------------------------------------------------- 1 | Doo -------------------------------------------------------------------------------- /test/fixtures/cell_test/song/show_with_block.erb: -------------------------------------------------------------------------------- 1 | <%= yield %> 2 | -------------------------------------------------------------------------------- /test/fixtures/comment/layout/show.erb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trailblazer/cells/HEAD/test/fixtures/comment/layout/show.erb -------------------------------------------------------------------------------- /test/fixtures/comment/show/show.erb: -------------------------------------------------------------------------------- 1 | $show.erb, <%= context.inspect %> 2 | -------------------------------------------------------------------------------- /test/fixtures/concepts/record/views/layout.erb: -------------------------------------------------------------------------------- 1 |
<%= yield %>
2 | -------------------------------------------------------------------------------- /test/fixtures/concepts/record/views/show.erb: -------------------------------------------------------------------------------- 1 | Party on, <%= model %>! -------------------------------------------------------------------------------- /test/fixtures/concepts/record/views/song.erb: -------------------------------------------------------------------------------- 1 | Lalala -------------------------------------------------------------------------------- /test/fixtures/inherit_views_test/popper/tap.erb: -------------------------------------------------------------------------------- 1 | TTttttap I'm not good enough! -------------------------------------------------------------------------------- /test/fixtures/inherit_views_test/tapper/play.erb: -------------------------------------------------------------------------------- 1 | Dooom! -------------------------------------------------------------------------------- /test/fixtures/inherit_views_test/tapper/tap.erb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trailblazer/cells/HEAD/test/fixtures/inherit_views_test/tapper/tap.erb -------------------------------------------------------------------------------- /test/fixtures/partial_test/with_partial/show.erb: -------------------------------------------------------------------------------- 1 | Adenosine Breakdown -------------------------------------------------------------------------------- /test/fixtures/partials/_show.html.erb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trailblazer/cells/HEAD/test/fixtures/partials/_show.html.erb -------------------------------------------------------------------------------- /test/fixtures/partials/_show.xml.erb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trailblazer/cells/HEAD/test/fixtures/partials/_show.xml.erb -------------------------------------------------------------------------------- /test/fixtures/song/ivar.erb: -------------------------------------------------------------------------------- 1 | <%= @title %> 2 | -------------------------------------------------------------------------------- /test/fixtures/song/show.erb: -------------------------------------------------------------------------------- 1 | <%= title %> 2 | -------------------------------------------------------------------------------- /test/fixtures/song/with_block.erb: -------------------------------------------------------------------------------- 1 | Yo! <%= yield %> 2 | -------------------------------------------------------------------------------- /test/fixtures/song/with_erb.erb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trailblazer/cells/HEAD/test/fixtures/song/with_erb.erb -------------------------------------------------------------------------------- /test/fixtures/song/with_html.erb: -------------------------------------------------------------------------------- 1 |Yew!
-------------------------------------------------------------------------------- /test/fixtures/song/with_locals.erb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trailblazer/cells/HEAD/test/fixtures/song/with_locals.erb -------------------------------------------------------------------------------- /test/fixtures/song/with_options.erb: -------------------------------------------------------------------------------- 1 | <%= @title %> 2 | -------------------------------------------------------------------------------- /test/fixtures/song_with_layout/happy.erb: -------------------------------------------------------------------------------- 1 | <%= "Happy #{yield}!" %> -------------------------------------------------------------------------------- /test/fixtures/song_with_layout/merry.erb: -------------------------------------------------------------------------------- 1 | <%= "Merry #{what}, #{yield}" %> -------------------------------------------------------------------------------- /test/fixtures/song_with_layout/show.erb: -------------------------------------------------------------------------------- 1 | <%= title %> 2 | -------------------------------------------------------------------------------- /test/fixtures/song_with_layout/show_with_layout.erb: -------------------------------------------------------------------------------- 1 | Friday -------------------------------------------------------------------------------- /test/fixtures/templates_caching_test/song/show.erb: -------------------------------------------------------------------------------- 1 | The Great Mind Eraser -------------------------------------------------------------------------------- /test/fixtures/url_helper_test/song/edit.erb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trailblazer/cells/HEAD/test/fixtures/url_helper_test/song/edit.erb -------------------------------------------------------------------------------- /test/fixtures/url_helper_test/song/with_block.erb: -------------------------------------------------------------------------------- 1 | Nice! 2 | <%= cap { "yeah" } %> -------------------------------------------------------------------------------- /test/fixtures/url_helper_test/song/with_capture.erb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trailblazer/cells/HEAD/test/fixtures/url_helper_test/song/with_capture.erb -------------------------------------------------------------------------------- /test/fixtures/url_helper_test/song/with_content_tag.erb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trailblazer/cells/HEAD/test/fixtures/url_helper_test/song/with_content_tag.erb -------------------------------------------------------------------------------- /test/fixtures/url_helper_test/song/with_form_for_block.erb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trailblazer/cells/HEAD/test/fixtures/url_helper_test/song/with_form_for_block.erb -------------------------------------------------------------------------------- /test/fixtures/url_helper_test/song/with_link_to.erb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trailblazer/cells/HEAD/test/fixtures/url_helper_test/song/with_link_to.erb -------------------------------------------------------------------------------- /test/layout_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trailblazer/cells/HEAD/test/layout_test.rb -------------------------------------------------------------------------------- /test/partial_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trailblazer/cells/HEAD/test/partial_test.rb -------------------------------------------------------------------------------- /test/prefixes_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trailblazer/cells/HEAD/test/prefixes_test.rb -------------------------------------------------------------------------------- /test/property_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trailblazer/cells/HEAD/test/property_test.rb -------------------------------------------------------------------------------- /test/public_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trailblazer/cells/HEAD/test/public_test.rb -------------------------------------------------------------------------------- /test/render_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trailblazer/cells/HEAD/test/render_test.rb -------------------------------------------------------------------------------- /test/templates_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trailblazer/cells/HEAD/test/templates_test.rb -------------------------------------------------------------------------------- /test/test_helper.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trailblazer/cells/HEAD/test/test_helper.rb -------------------------------------------------------------------------------- /test/testing_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trailblazer/cells/HEAD/test/testing_test.rb --------------------------------------------------------------------------------