0.01
Repository is archived
No commit activity in last 3 years
No release in over 3 years
Jekyll-Store cmdline tool to translate CSV file to products.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Development

~> 3
 Project Readme

CSV to Products

Build Status

A command line tool for parsing a csv of product data into markdown files with front matter suitable for use with Jekyll-Store Front.

Usage

To install:

$ gem install csv_to_products

To parse:

$ csv_to_products my-products.csv my-products-folder

If the arguments are missing, it will try to parse products.csv into the _products folder.

Each product must have a unique name and a numeric price.

Array

Any field name of the form array[Member] with be treated as a array. For example a csv with fields like this,

available_sizes[Small] available_sizes[Medium] available_sizes[Large]
y n y

Will be collected into the front matter as:

available_sizes: [Small, Large]

All values will be treated as false, except for: y, Y, 1, true, yes, and Yes.

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