From f517a76ef56b5bcdbd3b3e8b789847a4a266ad73 Mon Sep 17 00:00:00 2001 From: Vic Date: Sat, 13 Jul 2024 01:31:45 -0500 Subject: [PATCH] update --- client/assets/partials.js | 2 +- client/src/utils/hbsAsyncHelper.js | 2 +- client/src/views/pages/body.hbs | 2 +- client/wrangler.toml | 6 +++++- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/client/assets/partials.js b/client/assets/partials.js index 16b8393..e3a239e 100644 --- a/client/assets/partials.js +++ b/client/assets/partials.js @@ -16,5 +16,5 @@ Handlebars.partials['structure/header'] = template({"compiler":[8,">= 4.3.0"],"m return "\r\n
"; },"useData":true}); Handlebars.partials['structure/htmlhead'] = template({"compiler":[8,">= 4.3.0"],"main":function(container,depth0,helpers,partials,data) { - return ""; + return "\r\n\r\n"; },"useData":true}); diff --git a/client/src/utils/hbsAsyncHelper.js b/client/src/utils/hbsAsyncHelper.js index 716d52e..8b2d577 100644 --- a/client/src/utils/hbsAsyncHelper.js +++ b/client/src/utils/hbsAsyncHelper.js @@ -11,7 +11,7 @@ export const registerHBHelper = () => registerAsyncHelper(Handlebars,'asyncTest' return new Promise((resolve, reject) => { setTimeout( function() { - resolve(`Async render with params: ${options.hash.name} || ${options.hash.age}`) + resolve(`Async render with params: ${options.hash.name}`) }, 200 ); diff --git a/client/src/views/pages/body.hbs b/client/src/views/pages/body.hbs index ce5e4dc..7b80430 100644 --- a/client/src/views/pages/body.hbs +++ b/client/src/views/pages/body.hbs @@ -24,7 +24,7 @@ Your name: {{name}}

-
{{asyncTest name='Vic Tester' age=38}}
+
{{asyncTest name='Vic Tester'}}
diff --git a/client/wrangler.toml b/client/wrangler.toml index 17672b3..1724e7e 100644 --- a/client/wrangler.toml +++ b/client/wrangler.toml @@ -1,4 +1,8 @@ name = "tech" account_id = "**********" workers_dev = true -compatibility_date = "2024-07-11" \ No newline at end of file +compatibility_date = "2024-07-11" + +[build] +command="npm run build" +watch_dir="views/" \ No newline at end of file