Typing the same html for each line of an svg is a pain so I made this.
This is my first time really using node... cool.
- Clone the repo
npm install --save handlebars
or check out installation here (http://handlebarsjs.com/installation.html)- Paste in your svg lines into
your_svg.svg
- In
template.html
, customise the html that you want to replicate for each line of your svg in between the{{each}}
tags
{{{this}}}
is where your svg line will be generated
- In Terminal, run
cleandirtysvg
- To view html output, open
output.html
in your favourite text editor