Skip to content

Latest commit

 

History

History
46 lines (32 loc) · 1.29 KB

File metadata and controls

46 lines (32 loc) · 1.29 KB

Contributing to Jinja2 Template Examples

👋 Thank you for considering contributing to this repository! We welcome examples that demonstrate different use cases and features of Jinja2 templating.

How to Contribute

  1. Fork the repository
  2. Create a new branch (git checkout -b feature/new-template-example)
  3. Add your example
  4. Submit a Pull Request

What to Contribute

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

Example Structure

When adding a new example:

  1. Create a new directory under the root folder
  2. Include these files:
    • template.j2 - The Jinja2 template
    • data.py or data.json - Sample data to render
    • render.py - Python script to demonstrate template rendering
    • README.md - Documentation explaining the example

Code Style

  • Use clear, descriptive variable names
  • Include comments explaining complex logic
  • Follow PEP 8 guidelines for Python code
  • Use consistent indentation in templates

Questions?

Feel free to open an issue if you have questions about contributing.

Thank you for helping improve this repository! 🎉