This website requires JavaScript.
Explore
Help
Sign In
jamey
/
berrypod
Watch
1
Star
0
Fork
0
You've already forked berrypod
Code
Issues
Pull Requests
Actions
Packages
Projects
1
Releases
Wiki
Activity
03fb98afc4
berrypod
/
lib
/
simpleshop_theme_web
/
components
/
layouts
/
shop.html.heex
2 lines
22 B
Plaintext
Raw
Normal View
History
Unescape
Escape
fix: resolve nested HTML documents causing LiveView binding errors The shop.html.heex and shop_root.html.heex were both full HTML documents. When nested (root layout + live layout), this created invalid HTML with duplicate <!DOCTYPE>, <html>, <head>, and <body> tags. This caused: - "Cannot bind multiple views to the same DOM element" console errors - Failed Lighthouse audits - Potential rendering issues Fix: - shop_root.html.heex: Now contains the full HTML document with theme settings, CSS variables, and data attributes - shop.html.heex: Now just passes through @inner_content Results: - Console errors: Gone - Best Practices: 96 → 100 - Total Blocking Time: 140ms → 30ms - HTML validation: Passes Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-21 20:20:39 +00:00
<%= @inner_content %>
Reference in New Issue
Copy Permalink