I am new to development in general so I appreciate the help. I am trying to build a grid application using the template provided in VS and simply adding my own content instead of the placeholder content. In the data/data.js file, there is a variable
for item content which contains some HTML:
var
itemContent =
"<p>Curabitur class aliquam vestibulum nam curae...</p>";
The HTML content I want to use in the item details pages contains multiple paragraphs, so it is very cumbersome to cut and paste that directly into data.js file, as is shown in the template. Also, VS only allows one line for all that HTML
content so its really a pain to edit because I have to horizontally scroll for a very long time.
I want to extract out the HTML content into a separate file within my project and then call it from the itemContent variable. How do I do that? Should I use a text or XML file instead?
Any help much appreciated.