Allow plugin render hooks to add link tags to the page (#1963)
Adds an extra optional property to plugin render results to allow plugins to add `<link>` tags to the page.
This commit is contained in:
@@ -41,6 +41,11 @@ Deno.test("/static page prerender", async () => {
|
||||
body,
|
||||
'<style id="def">h1 { text-decoration: underline; }</style>',
|
||||
);
|
||||
assertStringIncludes(body, '<link rel="stylesheet" href="styles.css"/>');
|
||||
assertStringIncludes(
|
||||
body,
|
||||
'<link rel="stylesheet" href="print.css" media="print"/>',
|
||||
);
|
||||
});
|
||||
|
||||
Deno.test("/with-island prerender", async () => {
|
||||
|
||||
Reference in New Issue
Block a user