after a long time i started a web project and found the extremly cool foundation framework and panini. I like the approch and i could solve all my problems until now. I reworked the hompage of our company wich relyed heavily on php. On the hompage we have a lot of tables where the prices where loaded everytime the page was called by a php function from a mySQL databse. As the prices change only once a year i want to shift the generation of the tables to panini. Therfore i have to inject the prices wich i get as .csv tables out of our acess database into panini. I ask more for a general idea as there might be different ways.
For now i am thinking of converting the csv table wich looks like this
product | price 1 | price 2 | price 3
productA | 10USD | 5USD | 3USD
to json (with this tool) and then get the different prices of the different products with a custom helper out of the json into the table wich alredy exists as a html table skeleton in panini. So a table entry would look like (pseudo code)
and then prints 10USD.
This is just an idea that i would like to implement maybe there are other ways. Is there someone who has an idea on this issue. I kow that one can get data into panini with the #each helper but i did not figure out if i could do what i want to do with these already existing helpers.
Thanks four your time Jakob