Open john-terenzio opened 5 years ago
https://github.com/ginggk/Ginger-Keys-Web-Rental-Agency/blob/e3788e4b15ed74a767487ab46326b85e2e76b2f6/javaScript.js#L6-L12
If in the template you renamed i to index then you could just pass the PAGE_DATA.playbills[i] object directly to the template like:
i
index
PAGE_DATA.playbills[i]
content += template(PAGE_DATA[i]);
Thoughts?
https://github.com/ginggk/Ginger-Keys-Web-Rental-Agency/blob/e3788e4b15ed74a767487ab46326b85e2e76b2f6/javaScript.js#L6-L12
If in the template you renamed
i
toindex
then you could just pass thePAGE_DATA.playbills[i]
object directly to the template like:Thoughts?