{"categories":[{"label":"WWW/HTTP","url":"https://skillfed.io/packages/category/internet-www-http/2"}],"enrichment":{"capability":"Integrates Jinja2 template rendering into aiohttp.web applications, allowing you to render HTML templates from async request handlers with context data.","skillfed_tags":["async-web","template-rendering"],"use_cases":["Render HTML templates from aiohttp request handlers using the @template decorator for simple cases.","Build dynamic web pages where handlers return context dictionaries that populate Jinja2 templates.","Set custom response headers (e.g., Content-Language) while rendering templates via render_template().","Share template data across multiple handlers using context processors.","Apply custom Jinja2 filters and extensions to template rendering in async web applications."],"what_it_does":"aiohttp_jinja2 bridges Jinja2 template rendering into aiohttp.web applications. It provides decorators and functions to render Jinja2 templates from async request handlers, passing context dictionaries into templates and returning rendered HTML responses. The package handles setup of the Jinja2 environment within an aiohttp application, manages template loading, and supports both simple decorator-based rendering and more complex scenarios where you need to set custom response headers or perform additional processing.\n\nThe package is designed for developers building async web applications with aiohttp who want to use Jinja2 for server-side template rendering. It supports function-based and class-based view handlers, context processors for shared template data, custom filters, and async rendering functions. The integration is straightforward: initialize the Jinja2 environment once during app setup, then decorate handlers or call render functions to produce responses.","worth_installing":"Yes. The package is stable (Production/Stable status), actively maintained, has no known vulnerabilities, and solves the common need to render Jinja2 templates in aiohttp applications. Install friction is low, and the Apache 2 license poses no restrictions. Use it if you're building an aiohttp web application and want server-side template rendering."},"id":"aiohttp-jinja2","links":{"html":"https://skillfed.io/packages/aiohttp-jinja2","md":"https://skillfed.io/packages/aiohttp-jinja2.md","pypi":"https://pypi.org/project/aiohttp-jinja2/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2023-11-18","license_spdx":null,"license_treatment":"permissive","name":"aiohttp-jinja2","python_support":"supports_current","summary":"jinja2 template renderer for aiohttp.web (http server for asyncio)"},"popularity":{"monthly_downloads":3496847,"position":2599,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"1.6"}
