Skip to content

how to print literal { in front of mustache variable? #357

Closed
@connor11528

Description

@connor11528

I have a mustache template where I would like to surround the variables with {}

var output = Mustache.render('<td>{{{start.lat}}, {{start.lon}}}</td>', routeObj);

I'd like this to output a <td> with the string: {1.8978, 30.4545}

{{{ has special meaning in mustache so it doesn't work. Is there a way to escape the first { in mustache?

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