Function: useAstroGenerateRss()
useAstroGenerateRss(
config):RssResult
Defined in: src/adapters/astro/rss.service.ts:123
Generate RSS 2.0 XML string from a config. Returns a Safe Result (no throwing).
Parameters
config
RSS configuration
Returns
Safe result with XML string or error
Example
const result = useAstroGenerateRss({
title: "My Blog",
description: "Posts about TypeScript",
site: "https://example.com",
items: [{ title: "Hello", pubDate: new Date(), link: "/blog/hello/" }],
});
if (result.ok) console.log(result.data); // XML string