Notorious Preying Mantis
    Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    jekyll-store-favouritespublic

    Jekyll-Store/Favourites

    Build Status

    Favourite products/wish list plugin for Jekyll-Store Engine.

    Actions

    favourite

    Adds product to the favourites list.

    Args:

    • name - Name of the product.

    Example:

    JekyllStoreEngine.Actions.favourite({ name: 'bag' });

    removeFromFavourites

    Remove product from the favourites list.

    Args:

    • name - Name of the product.

    Example:

    JekyllStoreEngine.Actions.removeFromFavourites({ name: 'bag' });

    FavouritesStore

    The products that have been favourited.

    Example output:

    {
      favourites: Immutable({
        'Jumper': { name: 'Jumper', price: 24.30 },
        'Cardigan': { name: 'Cardigan', price: 21.45 },
        'Pullover': { name: 'Pullover', price: 13.90 }
      })
    }

    Contributing

    1. Fork it
    2. Create your feature branch (git checkout -b my-new-feature)
    3. Commit your changes (git commit -am 'Add some feature')
    4. Push to the branch (git push origin my-new-feature)
    5. Create a new Pull Request

    Keywords

    none

    install

    npm i jekyll-store-favourites

    Downloadslast 7 days

    1

    version

    0.2.0

    license

    ISC

    repository

    github.com

    last publish

    collaborators

    • avatar