Skip to content

How to show multi variables in tmpl file? #44

@lmquang

Description

@lmquang

This is my code:
location := Place{}
location.region , location.city = getLocation(params["code"])
r.HTML(200, "home/place", location)

When i code : {{.}} , then it shows {abc def }
But I wanna show somethings like:
My region: {{ .region }}
My city : {{ .city }}
But i can't. So, can you show me how to do that ? Thank you

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions