template icon indicating copy to clipboard operation
template copied to clipboard

🚀 Can I register filters when using django template engine?

Open xiayulu opened this issue 3 years ago • 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

xiayulu avatar Mar 24 '22 11:03 xiayulu

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

welcome[bot] avatar Mar 24 '22 11:03 welcome[bot]