Skip to content

src/dazzle_ui/runtime/asset_fingerprint.py

Generated: 2026-03-30T04:38:48.906433+00:00

Commit: 615f1354a103

Language: python

Scope: dazzle_ui

Purpose

Content-hash fingerprinting for static assets.

Computes SHA-256 hashes of static files at startup and provides a Jinja2 filter that rewrites paths with the hash embedded in the filename:

/static/css/dazzle-bundle.css → /static/css/dazzle-bundle.a1b2c3d4.css

The static file server recognises t...

Key Exports

  • build_asset_manifest
  • static_url_filter
  • strip_fingerprint

Dependencies

Imports

  • hashlib
  • re
  • pathlib.Path

Event Interactions

None detected.

Invariants and Assumptions

No invariants documented.

Tests

  • tests/unit/test_asset_fingerprint.py
  • tests/integration/test_runtime_e2e.py
  • tests/integration/test_runtime_pipeline.py
  • tests/unit/test_runtime_test_routes.py
  • tests/unit/test_runtime_services.py

Notes

This page was automatically generated by tools/gen_reference_docs.py.