Say I have a javascript dictionary variable with the following key value pairs:
var attributes = { name : "name1", age: 10}
I want to use the values in the above attribute to create the children of an HTML ul element within the same javascript function as follows:
var htmlContent = '<ul><li>@Html.ActionLink(attributes["name"], "Details", "Home", new { name = attributes["name"]})</li></ul>'
Is there a way to do this? TIA.