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
I'm using Gin with angularjs, since angular also use {{ }} we have change the action delimiters of go templates.
The text was updated successfully, but these errors were encountered:
I use Context.Data(code, content-type, data) to serve Angular templates. Hope this helps anyone struggling with this...
Context.Data(code, content-type, data)
Sorry, something went wrong.
I solved it doing so:
html, err := template.New("").Delims("[[", "]]").ParseFiles("site/index.html", "site/login.html", "site/signup.html") if err != nil { panic(err) } router.SetHTMLTemplate(html)
This also worked for me:
... router.Delims("[[", "]]") router.LoadHTMLGlob("website/templates/*") ...
router is of type *gin.Engine
router
*gin.Engine
javierprovecho
No branches or pull requests
I'm using Gin with angularjs, since angular also use {{ }} we have change the action delimiters of go templates.
The text was updated successfully, but these errors were encountered: