ReloadScript: Reload HTML pages on new versions a val or its dependencies
- Fork this val
- Include
ReloadScript(import.meta.url)
in your HTML output
import { htmlResponse }
from "https://esm.town/v/postpostscript/htmlComponentLibrary";
import {
ReloadScript }
from "https://esm.town/v/[username]/ReloadScript";
export default async function(
req: Request):
Promise<
Response> {
return htmlResponse
`
It worked!!! ${Math.random()}
${ReloadScript(import.meta.url)}
`;
}
forked from @stevekrouse/ReloadScript