A command line tool for parsing a csv of product data into markdown files with front matter suitable for use with Jekyll-Store Front.
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.
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
.
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)