feat: add config option to disable runtime js (#36)
The config option can be toggled per page:
```js
export const config: PageConfig = { runtimeJS: false };
```
This commit is contained in:
@@ -53,6 +53,10 @@ export async function render(opts: RenderOptions): Promise<string> {
|
||||
templateProps = undefined;
|
||||
}
|
||||
|
||||
if (opts.imports.length === 0) {
|
||||
templateProps = undefined;
|
||||
}
|
||||
|
||||
const html = template({
|
||||
bodyHtml,
|
||||
imports: opts.imports,
|
||||
|
||||
Reference in New Issue
Block a user