New issue
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
馃敟 Support/Integrate quicktemplate #190
Comments
Thanks for opening your first issue here! 馃帀 Be sure to follow the issue template! |
Hi @s0kil, quicktemplate needs to be compiled and therefor we didn't add this library to our Render function yet. I use this library myself for some web apps, the way I make it work with fiber is straightforward:
./templates/hello.qtpl
Generate templates
./server.go package main
import (
"./templates"
"github.com/gofiber/fiber"
)
func main() {
app := fiber.New()
app.Get("/", func(c *fiber.Ctx) {
c.Set("Content-Type", "text/html")
c.SendString(templates.Hello("Hello, World!"))
})
app.Listen(3000)
} I hope this helps, if you have any further questions please don't hesitate to leave a comment! |
Thank You @Fenny . Do you plan to document this? |
@s0kil, I have no plans to document this because it's not a part of our framework. I'm closing this issue, feel free to re-open if you have questions/suggestions! |
@s0kil are you still using Fiber and quicktemplate? Can I ask you how? |
@s0kil #190 (comment) here is the instruction from fenny |
Could you provide an example on how to integrate with quicktemplate ?
The text was updated successfully, but these errors were encountered: