chameleon-partials
Simple reuse of partial HTML page templates in the Chameleon template language for Python web frameworks. Use when writing Python code that uses the chameleon_partials package.
适合你,如果使用Chameleon模板引擎开发Python Web应用
/ 通过 npx 安装 校验哈希
npx oh-my-skill add mikeckennedy/chameleon_partials/chameleon-partials/ 通过 bash 安装
curl -fsSL https://oh-my-skill.com/install.sh | bash -s -- mikeckennedy/chameleon_partials/chameleon-partials/ 已经装过?验证本机副本,不用重装
npx oh-my-skill verify mikeckennedy/chameleon_partials/chameleon-partials安装目标可用 --agent / --scope 或 --to 明确指定;省略时只会在唯一已存在的 agent 目录上自动选择,零命中或多命中会停止并提示。content_hash 缺失或不一致均拒装。
16GitHub stars
~251上下文体积 · 单文件
索引托管
怎么用
商店整理自技能原文 · 版本 608a281 · 表述以原文为准它做什么
安装后,Claude 能帮你用 Chameleon 模板语言复用 HTML 页面片段,比如渲染局部模板并添加到视图模型中。
什么时候触发
当你在 Python 项目中使用 chameleon_partials 包,需要编写或调试模板复用代码时触发。
装好后可以这样说
Claude 会生成代码示例。
Claude 会解释 extend_model 的用法。
技能原文 SKILL.md
Chameleon Partials
Simple reuse of partial HTML page templates in the Chameleon template language for Python web frameworks.
Installation
pip install chameleon-partials
API overview
Setup
Register chameleon_partials with Chameleon. Call this once at application startup.
register_extensions: Register chameleon_partials with Chameleon so partials can be rendered
Rendering partials
Render partial templates and expose render_partial to your view models.
render_partial: Render a partial template to an HTML fragmentextend_model: Addrender_partialto a view model so templates can call it
Exceptions
Errors raised by the library.
PartialsException: Raised when chameleon_partials is configured or used incorrectly
Resources
- Full documentation
- [llms.txt](llms.txt) — Indexed API reference for LLMs
- [llms-full.txt](llms-full.txt) — Comprehensive documentation for LLMs
- Source code
按 MIT 许可原样转载,未经改动 · 在 GitHub 查看 →
评论
登录即可评论;带「已验证安装」的,是发布者名下有本店的安装或持有记录。
…