Files
sweet/tests/fixture_plugin_html/fresh.config.ts
T
2023-11-10 13:59:41 +01:00

16 lines
284 B
TypeScript

import { defineConfig } from "$fresh/server.ts";
export default defineConfig({
plugins: [
{
name: "html inject",
async renderAsync(ctx) {
await ctx.renderAsync();
return {
htmlText: "<h1>it works</h1>",
};
},
},
],
});