Most of the Q&A I found online on this topic were about converting a CSV
file into an HTML
table, which is not what I am trying to achieve here.
I have a CSV
table with 70+ entries and the following columns:
- Name
- Year
- Duration
- Location
- Price
- Link
- Pitch
- Details
And I would like to convert it into HTML
code to upload to our website, such as:
<h3>Name</h3>
<ul>
<li>When: `Year`</li>
<li>How long: `Duration`</li>
<li>Where: `Location`</li>
<li>How much: `Price`</li>
<li>What: `Pitch`. `Description` <a href="`link`">Learn More</a>.
</ul>
[EDIT]: the idea would be to use the CSV file like a database and iterate on each row, generating HTML based on the available values.
What is the best way to write a script that would accomplish the above?