chore: lint and format
All checks were successful
Build and Push Backend Image / build (push) Successful in 50s
All checks were successful
Build and Push Backend Image / build (push) Successful in 50s
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -13,10 +13,7 @@ export interface RenderOptions {
|
||||
[key: string]: unknown;
|
||||
}
|
||||
|
||||
export async function renderTemplate(
|
||||
name: string,
|
||||
locals: RenderOptions,
|
||||
): Promise<string> {
|
||||
export async function renderTemplate(name: string, locals: RenderOptions): Promise<string> {
|
||||
// Dynamic import: @maizzle/framework v6 is ESM-only
|
||||
const { render } = await import("@maizzle/framework");
|
||||
|
||||
@@ -35,7 +32,7 @@ export async function renderTemplate(
|
||||
},
|
||||
},
|
||||
locals: {
|
||||
cssPath: CSS_PATH, // layout uses {{ cssPath }} in <link href="{{ cssPath }}" inline>
|
||||
cssPath: CSS_PATH, // layout uses {{ cssPath }} in <link href="{{ cssPath }}" inline>
|
||||
baseUrl: BASE_URL,
|
||||
...locals,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user