{"categories":[{"label":"Python Modules","url":"https://skillfed.io/packages/category/software-development-libraries-python-modules/5"}],"enrichment":{"capability":"Provides base classes to create custom Jinja2 template tags (standalone, container, and inclusion types) with minimal boilerplate by implementing a render method.","skillfed_tags":["jinja2-extension","template-tags"],"use_cases":["Add a custom {% now %} tag to templates that outputs the current date and time in a specified format.","Create a {% hmac %} container tag that signs template content with a secret key and returns the digest.","Build an {% include_header %} tag that includes a template fragment with injected context variables like logo paths.","Implement a {% username %} tag that accesses the current request context to render the logged-in user's name.","Define tags that assign their output to template variables using the 'as' keyword for later reuse."],"what_it_does":"jinja2-simple-tags is a lightweight library that reduces boilerplate when writing custom Jinja2 template tags. Instead of implementing the full Jinja2 Extension API, you subclass one of three provided tag types\u2014StandaloneTag (for simple output tags), ContainerTag (for tags with opening and closing markers), or InclusionTag (for template inclusion)\u2014and implement a render method. The library handles registration, argument parsing, context access, and output escaping.\n\nIt's designed for developers building Jinja2-based applications (web frameworks, static site generators, templating systems) who need to extend templates with custom logic without wrestling with Jinja2's lower-level extension machinery. The package supports Python 3.6 and later, depends only on Jinja2, and has no known security vulnerabilities.","worth_installing":"Yes. The package is actively maintained, has no dependencies beyond Jinja2, carries a permissive license, and solves a real problem for anyone building Jinja2 applications. The API is straightforward and well-documented. Install it if you need to write custom template tags and want to avoid boilerplate."},"id":"jinja2-simple-tags","links":{"html":"https://skillfed.io/packages/jinja2-simple-tags","md":"https://skillfed.io/packages/jinja2-simple-tags.md","pypi":"https://pypi.org/project/jinja2-simple-tags/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2024-03-06","license_spdx":null,"license_treatment":"permissive","name":"jinja2-simple-tags","python_support":"supports_current","summary":"Base classes for quick-and-easy template tag development"},"popularity":{"monthly_downloads":3090115,"position":2759,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"0.6.1"}
