import BoxTlbr from "/assets/box-tlbr.png"; import Box4x3Mask from "/assets/box-4x3-mask.png"; import { experimental_AstroContainer } from "astro/container"; import Header from "/components/Header.astro"; const header = await experimental_AstroContainer .create() .then((x) => x.renderToString(Header)) .then((x) => // match data-astro-cid attributes where there no value // this is because xml hates boolean attributes for some reason. :( x.replaceAll(/data-astro-cid-[a-zA-Z0-9]*(?!=["'])/gm, (m) => m + '=""'), ) .then((x) => // match wbr tags (with data astro cid) and close em x.replaceAll(//gm, (m) => m + ""), ); export async function GET() { return new Response( ` ]> RSS | vielle.dev ${header}

Blog Posts

If you want to use this page in your RSS reader, simply paste this page's URL in and it'll just work. To view the original RSS, view the page source. The styling of this page is made possible by XSLT

`, { headers: { "Content-Type": "text/xml", }, }, ); }