👋 Thank you for considering contributing to this repository! We welcome examples that demonstrate different use cases and features of Jinja2 templating.
- Fork the repository
- Create a new branch (
git checkout -b feature/new-template-example) - Add your example
- Submit a Pull Request
We welcome:
- Basic to advanced Jinja2 template examples
- Real-world use cases
- Different template inheritance patterns
- Custom filter implementations
- Integration examples with various frameworks
- Performance optimization techniques
- Best practices and common pitfalls
When adding a new example:
- Create a new directory under the root folder
- Include these files:
template.j2- The Jinja2 templatedata.pyordata.json- Sample data to renderrender.py- Python script to demonstrate template renderingREADME.md- Documentation explaining the example
- Use clear, descriptive variable names
- Include comments explaining complex logic
- Follow PEP 8 guidelines for Python code
- Use consistent indentation in templates
Feel free to open an issue if you have questions about contributing.
Thank you for helping improve this repository! 🎉