No commit activity in last 3 years
No release in over 3 years
helprs provided such as amazon(asin, :detail)
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 0.6
~> 1.7
~> 1.3
~> 0.0
~> 10.0

Runtime

 Project Readme

Gem Version Build Status Coverage Status Code Climate

middleman-amazon-link

middleman-amazon-link is a Middleman extension that generates links to amazon on products specified.

Installation

  1. Specify the dependency in your project's Gemfile:
gem "middleman-amazon-link"
  1. Activate the extension in your project's config.rb:
# config.rb
activate :amazon_link do |amazon|
  amazon.associate_tag = "xxxx-22"
  amazon.aws_access_key_id = "xxxx"
  amazon.aws_secret_key = "xxx"

  # optional below
  amazon.country = "jp"
  amazon.use_cache = true
  amazon.cache_dir = ".cache/amazon"
end

Usage

Call 'amazon(asin)' function in your page file:

ERB:

# Amazon Link
<%= amazon('ASINXXXXXXX', :detail) %>

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 new Pull Request

License

Copyright (c) 2015 Ataru Kodaka. See LICENSE for details.