Sha256: 14b2256d093555cbf6f3451629bb332d2519744c17ed2ac0a5a3a79a77e836db
Contents?: true
Size: 942 Bytes
Versions: 6
Compression:
Stored size: 942 Bytes
Contents
# Cells::Erb Proper ERB support for Cells using [Erbse](https://github.com/apotonick/erbse). ## Installation Add this line to your application's Gemfile: ```ruby gem 'cells-erb' ``` This will register the `Erbse::Template` engine with Tilt for `.erb` files. And that's all you need to do. ## HTML Escaping Cells doesn't escape except when you tell it to do. However, you may run into problems when using Rails helpers. Internally, those helpers often blindly escape. This is not Cells' fault but a design flaw in Rails. As a first step, try this and see if it helps. ```ruby class SongCell < Cell::ViewModel include ActionView::Helpers::FormHelper include Cell::Erb # include Erb _after_ AV helpers. # .. end ``` If that doesn't work, [read the docs](http://trailblazerb.org/gems/cells/cells4.html#html-escaping). ## Dependencies This gem works with Tilt 1.4 and 2.0, and hence allows you to use it from Rails 3.2 upwards.
Version data entries
6 entries across 6 versions & 1 rubygems
Version | Path |
---|---|
cells-erb-0.0.9 | README.md |
cells-erb-0.0.8 | README.md |
cells-erb-0.0.7 | README.md |
cells-erb-0.0.6 | README.md |
cells-erb-0.0.5 | README.md |
cells-erb-0.0.4 | README.md |