Skip to content

Rails-Designer/attractivejs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Attractive.js

A light-weight library for declarative DOM actions using data attributes.

Quick example:

<button data-action="toggleClass#active" data-target="#content">
  Toggle
</button>

<p id="content">
  This element should toggle the `active` class when clicking the button below.
</p>

Sponsored By Rails Designer

Rails Designer

Documentation

📑 See the docs site (built with Perron)

Release

Because I always forget how to do this and don't feel like pulling a third-party dependency for releasing.

npm version patch # or minor, or major
npm publish
git push
git push --tags

License

Attractive.js is released under the MIT License.