We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Suppose i have a struct like below
type Person struct { Name string `json:"name"` }
Now when wrapping my response in pongo context like below
dataContext := pongo2.Context{ "person": person, } ctx.HTML(200, "user.html", dataContext)
in the HTML
{{person.name}} will not work, only {{person.Name}} works which means pongo using default fields names of struct.
Is there any way i can specify my field name manually for this?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Suppose i have a struct like below
Now when wrapping my response in pongo context like below
in the HTML
{{person.name}} will not work, only {{person.Name}} works which means pongo using default fields names of struct.
Is there any way i can specify my field name manually for this?
The text was updated successfully, but these errors were encountered: