🚀 Add new /templates utility + add support for web components

This commit is contained in:
pheralb
2025-02-26 16:59:52 +00:00
parent 63d2416274
commit dc22285088
14 changed files with 290 additions and 91 deletions
+9
View File
@@ -0,0 +1,9 @@
interface SourceParams {
url: string | undefined;
}
export const getSource = async (params: SourceParams) => {
const response = await fetch(params.url || '');
const content = await response.text();
return content;
};