Module: Weft::Page::Assets
- Included in:
- Weft::Page
- Defined in:
- lib/weft/page/assets.rb
Overview
The asset surface of the page head: the register_* family (class-level DSL, accumulate semantics — subclasses add atop their parents) plus the rendering and URL-resolution machinery that emits them. Mixed into Weft::Page alongside Head, whose build_head drives render_assets.
Defined Under Namespace
Modules: ClassMethods
Constant Summary collapse
- HTMX_SRC =
"https://unpkg.com/htmx.org@2.0.4"- HTMX_ATTRS =
{ integrity: "sha384-HGfztofotfshcF7+8n44JQL2oJmowVChPTg48S+jvZoztPfvwD79OC/LTtG6dMp+", crossorigin: "anonymous" }.freeze
- HTMX_SSE_SRC =
"https://unpkg.com/htmx-ext-sse@2.2.2/sse.js"- HTMX_SSE_ATTRS =
{ integrity: "sha384-fw+eTlCc7suMV/1w/7fr2/PmwElUIt5i82bi+qTiLXvjRXZ2/FkiTNA/w0MhXnGI", crossorigin: "anonymous" }.freeze
Class Method Summary collapse
Class Method Details
.included(base) ⇒ Object
15 |
# File 'lib/weft/page/assets.rb', line 15 def self.included(base) = base.extend(ClassMethods) |