Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

jinja-partials

Skill by mikeckennedy

Guides AI assistants in using the jinja_partials Python package, which reuses partial HTML page templates in Jinja. It is for developers building Flask, Quart, FastAPI, Starlette or plain Jinja2 apps.

  • Score 79
  • 234 stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install jinja-partials

Built from the published package, never by AI.

git clone --depth 1 https://github.com/mikeckennedy/jinja_partials /tmp/jinja_partials && mkdir -p ~/.claude/skills && cp -r /tmp/jinja_partials/docs ~/.claude/skills/jinja-partials

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install jinja-partials in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

The jinja-partials skill gives an AI assistant guidance for the jinja_partials Python package, which reuses partial HTML page templates written in the Jinja template language. The source covers how to register the package with Flask, Quart, FastAPI, Starlette or a plain Jinja2 environment, and how to call render_partial inside templates. It also covers generate_render_partial for custom render pipelines.

Partials receive only the keyword arguments passed to render_partial, unlike Jinja's include tag. Async apps run partials on a small thread pool tied to the app lifespan. The skill lists common pitfalls, such as the argument order for register_starlette_extensions and the markup setting for register_environment. It is aimed at developers writing Python code that uses the jinja_partials package.

Written from the project's SKILL.md and checked against it.

What it can do

  • Framework registrationRegisters render_partial with Flask, Quart, FastAPI, Starlette or a plain Jinja2 environment.
  • Rendering partialsRenders a partial template with keyword data and returns an HTML fragment.
  • Custom renderersBuilds a render_partial function bound to your own renderer with generate_render_partial.
  • Jinja2 extensionRegisters partials declaratively with PartialsJinjaExtension in an Environment.
  • Project layout guidanceDescribes keeping partials in a templates/shared/partials folder alongside normal layouts.
  • Async page renderingShows how to render a FastAPI or Starlette page with render_async and HTMLResponse.

What you need

  • Python 3.10 or later
  • The jinja-partials package, installed with pip
  • A supported web framework or a Jinja2 environment

Try asking

  • Register jinja_partials with my Flask app and show a partial example
  • Set up jinja_partials for my FastAPI app with async rendering
  • Write a custom renderer for render_partial using my Jinja environment

Good to know

  • Partials do not inherit the caller's context unless data is passed explicitly.
  • With the Flask register_extensions path, Flask context processors, g and request are available in partials, but not with PartialsJinjaExtension on Flask.
  • Calling register_fastapi_extensions or register_starlette_extensions twice on the same app double-wraps the lifespan.
  • On async FastAPI or Starlette environments, templates.TemplateResponse crashes inside the running event loop.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: docs/skill.md. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to jinja-partials

All alternatives →
openclaw-github-repo-commandersickn33
94

Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.

AAA Skill 50k
gradiogradio-app
94

Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.

AAA Skill 44k
hig-components-menussickn33
94

Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.

AAA Skill 50k
fastapi-templateswshobson
94

Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.

AAA Skill 43k
appfunctionsandroid
94

Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.

AAA Skill 11k
agent-qa-authoringsickn33
94

Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.

AAA Skill 50k

Compare with openclaw-github-repo-commander, gradio or hig-components-menus

jinja-partials: common questions

What is the jinja_partials package used for?

It reuses partial HTML page templates written in Jinja inside Python web frameworks. Partials are rendered with render_partial inside templates.

Do partials see the variables of the page that calls them?

No. A partial only sees the keyword arguments passed to render_partial. The exception is the Flask register_extensions path, where Flask context processors, g and request are also available.

Why does register_environment show escaped HTML in my partials?

register_environment defaults to markup=False, while the other registration paths use markup=True. With autoescaping on, pass markup=True to avoid escaped output.

How do I install jinja-partials?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is jinja-partials free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is jinja-partials safe to use?

It scores 79 of 100. Grades: maintenance A, licence A, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to jinja-partials?

Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.

jinja-partials Install

Add to stack

Loading.