Hacker GitHub

← All repos

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

Mentions per year 3 mentions · busiest year 2024 (2)
20082026
  1. …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
  2. There is https://github.com/justinfagnani/html-include-element as a web component.
  3. 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