Skip to content
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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add stub for quickly implementing custom templates tags and filters #3

Open
k4ml opened this issue Nov 14, 2022 · 4 comments
Open

Add stub for quickly implementing custom templates tags and filters #3

k4ml opened this issue Nov 14, 2022 · 4 comments

Comments

@k4ml
Copy link
Contributor

k4ml commented Nov 14, 2022

The end result is when people create their django project using labzero, they can start adding their own custom tags and filters, with all the boilerplate already done.

@Ngazetungue
Copy link
Collaborator

Ngazetungue commented Nov 15, 2022

I will create a directory called templatetags and add an empty init.py to the labzero project or under src folder.
I will also create another python file under templatetags where people will use to get started with custom template tags and filters.
This will be generated every time people create their project using labzero. This works plenty well on my project.

@k4ml
Copy link
Contributor Author

k4ml commented Nov 16, 2022

Implement some simple tags and filters as well so people can see how it should be implemented and may also use it as a base for their own tags/filters.

@Ngazetungue
Copy link
Collaborator

I implemented tags. I will look at filter

@Ngazetungue
Copy link
Collaborator

let me know when you are happy or where to edit with tags so i can go ahead with filters

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants