Buckets:
AnonymousSpottedToad/candidate_bucket / codebase /python /mardiros_fastlife /tests /fastlife_app /components /layout.py
| from xcomponent import Catalog, XNode | |
| from fastlife.adapters.xcomponent.registry import x_component | |
| layout_catalog = Catalog() | |
| def Head(): | |
| return """ | |
| <head> | |
| <meta charset="utf-8" /> | |
| <title>test - Fastlife</title> | |
| <script src="/static/scripts/htmx.4.0.0.min.js" crossorigin="anonymous">{""}</script> | |
| <link href="/static/css/main.css" rel="stylesheet" /> | |
| </head> | |
| """ | |
| def Body(): | |
| return """ | |
| <body> | |
| {/* <script> | |
| htmx.logAll(); | |
| </script> */} | |
| <div id="maincontent" hx-target="this" hx-swap="innerHTML"> | |
| {children} | |
| </div> | |
| </body> | |
| """ | |
| def Layout(children: XNode): | |
| return """ | |
| <> | |
| <!DOCTYPE html> | |
| <html> | |
| <layout.Head /> | |
| <layout.Body>{children}</layout.Body> | |
| </html> | |
| </> | |
| """ | |
Xet Storage Details
- Size:
- 900 Bytes
- Xet hash:
- 679dd46f2b7bc3d9f81e2b07346138677a093d5693099de435cc546536430f54
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.