I have an object like this
let order = {
owner: {
firstName: "John",
lastName: "Doe"
}
}
and this is my template
let template = "
hello {order.owner.firstName} {order.owner.lastName}
";
but the output is
hello {order.owner.firstName} {order.owner.lastName}
instead of
hello John Doe
does string-template not process objects those are passed? Or there is some other way to accomplish it?
I have an object like this
let order = {
owner: {
firstName: "John",
lastName: "Doe"
}
}
and this is my template
let template = "
hello {order.owner.firstName} {order.owner.lastName}
";but the output is
hello {order.owner.firstName} {order.owner.lastName}
instead of
hello John Doe
does string-template not process objects those are passed? Or there is some other way to accomplish it?