Skip to content
This repository was archived by the owner on Dec 5, 2022. It is now read-only.

zeczec/vanilla-ujs

This branch is 1 commit ahead of, 1 commit behind hauleth/vanilla-ujs:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

51a91ad · Oct 9, 2017
Nov 16, 2016
Nov 16, 2016
Jul 19, 2016
Jan 5, 2014
Jan 30, 2016
Jan 30, 2016
Aug 24, 2016
Dec 28, 2013
May 25, 2016
Jun 2, 2016
Nov 6, 2016
Oct 9, 2017

Repository files navigation

Vanilla UJS

Build StatusDependency Status

It is implementation of Rails jQuery UJS in pure JavaScript. No extra dependencies.

Installation using the vanilla-ujs gem

For automated installation in Rails, use the vanilla-ujs gem. Place this in your Gemfile:

gem 'vanilla-ujs'

And run:

$ bundle install

Require vanilla-ujs into your application.js manifest.

//= require vanilla-ujs

Does it mean that I shouldn't use jQuery

No. You should if you want. This library is created to make your Rails code independent from front-end library.

Contribute

  1. Clone repo

     $ git clone git://github.com/hauleth/vanilla-ujs.git
     $ cd vanilla-js/
    
  2. Install dependencies

     $ npm install
    
  3. Run tests

     $ grunt test
    

Thanks

License

See LICENSE file.

About

UJS without jQuery dependency

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 98.4%
  • CSS 1.1%
  • Other 0.5%