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
class
_Script
class
_Attribute
class
_InlineScript
class
_InheritanceUse
class
_Element
class
_Tag
class
_DeleteUse
class
_HtmxConfig
class
_TemplateParser
function
_without_javascript_comments
function
check_htmx_compatibility
Blank JS comments while preserving strings and line numbers.
Detect statically provable mixed or incomplete htmx provisioning.
_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
|
— |