Comment

Comment by llcooliovice

Chrome are prototyping a declarative client-side include mechanism.

<template src="/partial.html" for=""></template>

Together with the declarative API, it will also include a way to import HTML in JavaScript:

import fragment from "/partial.html" with { type: "fragment" }

parent llcooliovice 3 months ago

No comments yet

Be the first to share your thoughts.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton