-
-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[DRY] Use html imports for the common header #4
Comments
Won't do. Besides being fairly new in the browser landscape, it's too limited (only css and js get applied immediately). Ideally I'd like a way to replicate PHP's I'll close for now, but I'll update this issue if I come across any serious attempt at approaching that goal. For now I'll bear repeating code in the spirit of allowing maximum portability (e.g. not needing a server for local development) but I suspect if html doesn't evolve to support this use case, I will probably have to return to PHP... |
Actually, there might be some light in the tunnel with seamless iframes. Let's just hope it doesn't take too long to arrive (caniuse?). Web Components simply aren't meant for this, see e.g. what the spec says:
Anyway, this is a different issue from the one originally reported (common header can still be implemented with HTML imports), so I'll reopen and move that feature request (client-side static content embedding) to another issue. |
Not ready for prime time yet, reopened in a1711d7. References: |
...and maybe templates for common structures, e.g. the content div, the footer, etc.
The text was updated successfully, but these errors were encountered: