0.04
No commit activity in last 3 years
No release in over 3 years
Helpers, Sass mixins, JS shortcuts, workflow and Rails settings from Evil Martians
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

>= 3.2.2
>= 3
>= 3.2.6
>= 1.1.0
 Project Readme

Evil Front Build Status

Helpers, shortcuts and my common frontend workflows from Evil Martians.

The project is separated into 3 gems:

  • Evil Front only contains helpers and doesn’t change the application environment.
  • Evil Front All loads the workflow gems: Autoprefixer, Csso, Slim, JqueryCdn, Evil Blocks, Uglifier.
  • Evil Front Rails loads the workflow gems and changes
    Rails settings to create my common frontend workflow with a single line of code.

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.

Sponsored by Evil Martians

Helpers

The Evil Front Core gem contains assets and view helpers:

View Helpers

Typography

  • russian_typograph to add typographical symbols (like Russian quotes, em-dash), non-breaking spaces.
  • english_typograph to add typographical symbols (like quotes, ellipsis), non-breaking spaces.
  • typograph_by_locale uses russian_typograph or english_typograph depend on current locale.
  • auto_flying_quotes add tags to quotes to move it from text left horizontal line.
  • ruble to insert the Russian currency character.
  • capitalize_first to capitalize only first letter.

Head Tags

Other

  • tel to insert phone numbers as links with the tel: protocol.

Sass Helpers

JS Helpers

Workflow

The Evil Front All gem loads my must-have tools:

Rails Settings

The Evil Front Rails gem changes default Rails settings:

  • Autoprecompile adds all files in root of app/assets/stylesheets and app/assets/javascripts to precompile. You should only store loadable files in subdirs.
  • Disable assets generation on controller and action generation.