Sha256: 039a511c17f9449eb29f884296faee5886c8eb4e2cea604834c4ba0f517f9ed3
Contents?: true
Size: 912 Bytes
Versions: 3
Compression:
Stored size: 912 Bytes
Contents
# Cells::Haml Haml support for Cells. ## Installation Add this line to your application's Gemfile: ```ruby gem 'cells-haml' gem "haml", github: "haml/haml", ref: "7c7c169" ``` This gem currently only works properly with Haml 4.1, which is not yet released. ## 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::Haml # include Haml _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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
cells-haml-0.0.10 | README.md |
cells-haml-0.0.9 | README.md |
cells-haml-0.0.8 | README.md |