Skip to content

🚀 Can I register filters when using django template engine? #172

Description

@xiayulu

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions