gofiber / gofiber/template

🚀 Can I register filters when using django template engine?

Open
#172 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

✏️ Feature 🤔 Question
Dominant language
Go
Stars
314
Forks
61
Avg merge
4h 35m
Merged PRs (30d)
12

Description

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

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the django.New entry point and its integration with Fiber's Views configuration. Trace how the engine is initialized and determine where the requested Register API would fit. Done means a custom filter can be registered through the engine and used by Django templates, with coverage for that behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
backend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.