Skip to content

How to pass objects? #25

@atulmala

Description

@atulmala

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions