From b81f816912db78b0a568ecfa0e7c3bc8f55dbe76 Mon Sep 17 00:00:00 2001 From: Matthew Phillips Date: Thu, 5 Oct 2023 10:59:26 -0400 Subject: [PATCH] Add a changeset --- .changeset/brave-pots-drop.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .changeset/brave-pots-drop.md diff --git a/.changeset/brave-pots-drop.md b/.changeset/brave-pots-drop.md new file mode 100644 index 000000000..3653e7fb6 --- /dev/null +++ b/.changeset/brave-pots-drop.md @@ -0,0 +1,18 @@ +--- +'astro': minor +--- + +Page Fragments + +Any page components can now be identified as *fragments*, allowing you fetch them in the client in order to replace only parts of the page. Fragments are used in conjuction with a partial rendering library, like htmx or Stimulus or even just jQuery. + +Pages marked as fragments do not have a `doctype` or any head content included in the rendered result. You can mark any page as a fragment by setting this option: + + +```astro +--- +export const fragment = true; +--- + +
  • This is a single list item.
  • +```