Based on https://github.com/denoland/fresh/pull/1769 . Mostly added a test. --------- Co-authored-by: Adam Gregory <adam@aguilaengineering.com>
16 lines
284 B
TypeScript
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>",
|
|
};
|
|
},
|
|
},
|
|
],
|
|
});
|