Helpers for frontend from Evil Martians
Helpers, shortcuts and my common frontend workflows from Evil Martians.
The project is separated into 3 gems:
You can safely use Evil Front Core, but the other two gems have side effects, so I recommend to only use them for new projects.
Some of the view helpers from Evil Front Core may require Rails, but most of them work with any Ruby application.
The Evil Front Core gem contains assets and view helpers:
russian_typograph
or english_typograph
depend on current locale.application.css
, jQuery from CDN and application.js
.tel:
protocol.black(alpha)
and white(alpha)
shortcut
functions.ruble
helper.auto_flying_quotes
helper.height
and line-height
properties.::after
with clear: both
.setTimeout
and setInterval
in CoffeeScript.href="#"
to clean event listeners from
noisy return false
.evil.post
, evil.del
and evil.put
shortcuts.evil.win
, evil.body
and evil.doc
shortcuts.The Evil Front All gem loads my must-have tools:
The Evil Front Rails gem changes default Rails settings:
app/assets/stylesheets
and app/assets/javascripts
to precompile. You should only store loadable
files in subdirs.