Coder Social home page Coder Social logo

evil-front's Introduction

Evil Front

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.

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.

evil-front's People

Contributors

ai avatar aruseni avatar demiazz avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.