import { File } from "./file.js"; export type StaticHTMLFile = File; /** * Creates a static HTML file * * @example * // Create an HTML file with content * const page = await StaticHTMLFile("index.html", * ` * * * * * My Website * * * *
*

Welcome to My Website

*
*
*

This is the main content of the page.

*
* * * ` * ); */ export function StaticHTMLFile( id: string, ...args: [content: string] | [path: string, content: string] ): Promise { const [path, content] = args.length === 1 ? [id, args[0]] : args; return File(id, { path, content, }); }