Hamlit integration for Cells
Clone or download
Latest commit 70fdaf6 Jun 28, 2018
Permalink
Failed to load latest commit information.
lib Remove rails hacks Jun 24, 2018
test
.gitignore
.travis.yml Remove rails hacks Jun 24, 2018
CHANGES.md
Gemfile
LICENSE.txt
README.md
Rakefile initial release Feb 13, 2015
cells-hamlit.gemspec

README.md

Cells::Hamlit

Hamlit support for Cells. Hamlit is a faster implementation of Haml.

Installation

Add this line to your application's Gemfile:

gem "cells-hamlit"

Note that you need hamlit-block, too, for capture support. This will slightly change semantics with blocks, as follows. # TODO

Add this lines to your application's Gemfile:

gem "cells-hamlit"
gem "hamlit-block"

To capture strings, the = directive is needed in the block.

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::ViewModelHaml

If that doesn't work, read the docs.

Note

This gem should not be used with cells-haml