0.0
No commit activity in last 3 years
No release in over 3 years
Temporary Hamlit integration for Cells
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0

Runtime

< 6.0.0, >= 4.0.1
>= 0
 Project Readme

cells-hamlit2 Build Status

Temporary workaround version of cells-hamlit until trailblazer/cells-hamlit#6 is closed.

Installation

Add these lines to your application's Gemfile:

gem "cells-hamlit2"
gem "hamlit"

If you use rails, add gem "cells-rails", too.

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.

class SongCell < Cell::ViewModel
  include ActionView::Helpers::FormHelper
  include Cell::Hamlit # include Haml _after_ AV helpers.

  # ..
end

If that doesn't work, read the docs.

Dependencies

This gem works with Tilt 1.4 and 2.0, and hence allows you to use it from Rails 3.2 upwards.