From bcf7f109dff8a1e8c08c43bc5590c81244dd3ad3 Mon Sep 17 00:00:00 2001 From: Leandro Facchinetti Date: Mon, 26 Dec 2022 19:34:42 +0000 Subject: [PATCH] --- server/index.mts | 75 +++++++++++++++++++++++++++++------------------- 1 file changed, 46 insertions(+), 29 deletions(-) diff --git a/server/index.mts b/server/index.mts index 76bb772..c60aa35 100644 --- a/server/index.mts +++ b/server/index.mts @@ -457,40 +457,57 @@ await commander.program response: express.Response; head: HTML; body: HTML; - }) => html` - - - - + }) => { + const layoutBody = html` + + $${body} + + `; - + return html` + + + + - - - $${response.locals.css.toString()} + - + + + $${response.locals.css.toString()} - $${head} - + - $${body} $${response.locals.javascript.toString()} - - `; + $${head} + + + $${layoutBody} $${response.locals.javascript.toString()} + + `; + }; application.web.get<{}, any, {}, {}, ResponseLocalsBase>( "/",