Y
Hacker News
new
|
ask
|
show
|
jobs
by
85392_school
148 days ago
What are you doing about repeated content?
1 comments
gulugawa
147 days ago
There's a Vite plugin that can be used to insert identical HTML on multiple pages without JavaScript. I use it for the navbar and footer:
https://www.npmjs.com/package/vite-plugin-handlebars
For repeated content where JavaScript is required, I use web components.
link
For repeated content where JavaScript is required, I use web components.