Many times i am asking myself how to handle Data and design. I wrote a REST API which responding data. The responding data are presenting in JSON without a design html structure of course. To display the data i have to parse them into a design.
E.g. my REST API returning me a list of flights. Now i have to design the list from json into a cool html / css structre.
I dont want to add all the stuff via Jquery. I even dont want to response the finished design via REST API.
What is the best practise for this case?