justinfagnani/html-include-element
View on GitHub ↗ ★ 269 JavaScript
Easily include external HTML into your pages.
3 mentions on Hacker News by 3 people: 0 stories, 3 comments · first 2020-03-23 · latest 2024-09-29
20082026
-
…problem. You can create a custom element for that with some 5 lines of code. Or use one ready: https://github.com/justinfagnani/html-include-element
comment by meiraleal · 2024-09-29 · in Web components are okay -
There is https://github.com/justinfagnani/html-include-element as a web component.
comment by niutech · 2024-02-22 · in Show HN: htmz – a low power tool for HTML -
There's a web component for that! https://github.com/justinfagnani/html-include-element <script type="module" src='https://unpkg.com/html-include-element'></script> <html-include src="./my-local-file.html"></html-include>
comment by dfabulich · 2020-03-23 · in Implementing single-file web components