Chrome Prototypes HTML Includes
1 points
2 hours ago
| 1 comment
| github.com
| HN
llcooliovice
2 hours ago
[-]
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" }

reply