一键导入
jinja2
Best practices for template rendering with Jinja2 including environments, filters, autoescaping, and security.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Best practices for template rendering with Jinja2 including environments, filters, autoescaping, and security.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Best practices for building CLI applications with Click including commands, groups, options, and testing.
Best practices for Django web development including models, views, templates, and testing.
Best practices for Flask web development including routing, blueprints, and testing.
Best practices for numerical computing with NumPy including arrays, broadcasting, and vectorization.
Best practices for writing and organizing tests with pytest including fixtures, parametrize, and plugins.
Best practices for HTTP client usage with Requests including sessions, error handling, and timeouts.
基于 SOC 职业分类
| name | jinja2 |
| description | Best practices for template rendering with Jinja2 including environments, filters, autoescaping, and security. |
Best practices for template rendering with Jinja2 including environments, filters, autoescaping, and security.
Apply this skill when rendering templates with Jinja2 — HTML pages, emails, configuration files, and code generation.
jinja2.Environment(loader=..., autoescape=...) once and reuse it.FileSystemLoader for file-based templates, PackageLoader for installed packages.autoescape=True for HTML templates to prevent XSS.{{ variable }} for output, {% if/for/block %} for control flow.{% extends 'base.html' %}) for layout reuse.autoescape=True when rendering HTML.SandboxedEnvironment for untrusted templates.|e filter explicitly when autoescape is off.Template(string) directly — it bypasses the environment's loader and settings.undefined=StrictUndefined during development.