gofiber/template

๐Ÿš€ Can I register filters when using django template engine?

xiayulu opened this issue ยท 1 comments

Is your feature request related to a problem?
Yes.

Describe the solution you'd like
I want build some custom Django template filters like dict.

But I can find the Register API.

Can django template engine expose the filters Registers API?

Thanks โค.

Describe alternatives you've considered
We can expose a method Register. So we can register filters like:

engine := django.New("./templates", ".html")
engine.Register(Dict)
app := fiber.New(fiber.Config{
	Views: engine,
})

That's awesome.

Additional context

Thanks for opening your first issue here! ๐ŸŽ‰ Be sure to follow the issue template! If you need help or want to chat with us, join us on Discord https://gofiber.io/discord