contracts.rules_htmx_compatibility

Page actions AI-ready formats and sharing
Open LLM text
Share with AI
Ask Claude Ask ChatGPT Ask Gemini Ask Copilot

Fail-loud htmx provisioning and template-drift checks.

Fail-loud htmx provisioning and template-drift checks.

contracts.rules_htmx_compatibility

Name Type Default Description
type
qualified_name
element_type
description
source_file
line_number
is_autodoc
autodoc_element
_autodoc_template
_autodoc_url_path
_autodoc_page_type
title
doc_content_hash

Symbols on this page

_Script
class
_Attribute
class
_InlineScript
class
_InheritanceUse
class
_Element
class
_Tag
class
_DeleteUse
class
_HtmxConfig
class
_TemplateParser
class
_without_javascript_comments
function
def _without_javascript_comments(source: str) -> str

Blank JS comments while preserving strings and line numbers.

Parameters

Name Type Default Description
source str
check_htmx_compatibility
function
def check_htmx_compatibility(template_sources: dict[str, str], manifest: HtmxProvisioningManifest) -> list[ContractIssue]

Detect statically provable mixed or incomplete htmx provisioning.

Parameters

Name Type Default Description
template_sources dict[str, str]
manifest HtmxProvisioningManifest

View source · /home/runner/work/chirp/chirp/site/../src/chirp/contracts/rules_htmx_compatibility.py:1