diff --git a/client/assets/Notes.md b/client/assets/Notes.md new file mode 100644 index 0000000..3f95fc9 --- /dev/null +++ b/client/assets/Notes.md @@ -0,0 +1 @@ +This folder hosts asset files that are built from handlebars. \ No newline at end of file diff --git a/client/assets/pages.js b/client/assets/pages.js deleted file mode 100644 index 4e9db74..0000000 --- a/client/assets/pages.js +++ /dev/null @@ -1,24 +0,0 @@ -import Handlebars from 'handlebars/runtime.js'; - var template = Handlebars.template, templates = Handlebars.templates = Handlebars.templates || {}; -templates['body'] = template({"compiler":[8,">= 4.3.0"],"main":function(container,depth0,helpers,partials,data) { - var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) { - if (Object.prototype.hasOwnProperty.call(parent, propertyName)) { - return parent[propertyName]; - } - return undefined - }; - - return "\r\n\r\n" - + ((stack1 = container.invokePartial(lookupProperty(partials,"structure/htmlhead"),depth0,{"name":"structure/htmlhead","data":data,"indent":" ","helpers":helpers,"partials":partials,"decorators":container.decorators})) != null ? stack1 : "") - + "\r\n Cloudflare Workers with Handlebars\r\n\r\n\r\n\r\n" - + ((stack1 = container.invokePartial(lookupProperty(partials,"structure/header"),depth0,{"name":"structure/header","data":data,"helpers":helpers,"partials":partials,"decorators":container.decorators})) != null ? stack1 : "") - + "\r\n
\r\n
\r\n
\r\n\r\n
\r\n
\r\n" - + ((stack1 = container.invokePartial(lookupProperty(partials,"logos/cloudflare"),depth0,{"name":"logos/cloudflare","data":data,"indent":" ","helpers":helpers,"partials":partials,"decorators":container.decorators})) != null ? stack1 : "") - + "
\r\n
\r\n\r\n

This template is rendered by Handlebars in a Cloudflare Worker!

\r\n\r\n

\r\n Your name: " - + alias3(((helper = (helper = lookupProperty(helpers,"name") || (depth0 != null ? lookupProperty(depth0,"name") : depth0)) != null ? helper : alias2),(typeof helper === "function" ? helper.call(alias1,{"name":"name","hash":{},"data":data,"loc":{"start":{"line":24,"column":44},"end":{"line":24,"column":52}}}) : helper))) - + "\r\n

\r\n\r\n
"
-    + alias3((lookupProperty(helpers,"asyncTest")||(depth0 && lookupProperty(depth0,"asyncTest"))||alias2).call(alias1,{"name":"asyncTest","hash":{"name":"Vic Tester"},"data":data,"loc":{"start":{"line":27,"column":17},"end":{"line":27,"column":48}}}))
-    + "
\r\n\r\n
\r\n
\r\n
\r\n\r\n" - + ((stack1 = container.invokePartial(lookupProperty(partials,"structure/footer"),depth0,{"name":"structure/footer","data":data,"helpers":helpers,"partials":partials,"decorators":container.decorators})) != null ? stack1 : "") - + "\r\n"; -},"usePartial":true,"useData":true}); diff --git a/client/assets/partials.js b/client/assets/partials.js deleted file mode 100644 index e3a239e..0000000 --- a/client/assets/partials.js +++ /dev/null @@ -1,20 +0,0 @@ -import Handlebars from 'handlebars/runtime.js'; - var template = Handlebars.template, templates = Handlebars.templates = Handlebars.templates || {}; -Handlebars.partials['logos/cloudflare'] = template({"compiler":[8,">= 4.3.0"],"main":function(container,depth0,helpers,partials,data) { - return "\r\n\r\n \r\n \r\n \r\n Cloudflare logo\r\n \r\n \r\n \r\n \r\n"; -},"useData":true}); -Handlebars.partials['logos/handlebars'] = template({"compiler":[8,">= 4.3.0"],"main":function(container,depth0,helpers,partials,data) { - return ""; -},"useData":true}); -Handlebars.partials['structure/footer'] = template({"compiler":[8,">= 4.3.0"],"main":function(container,depth0,helpers,partials,data) { - return ""; -},"useData":true}); -Handlebars.partials['structure/footerlibs'] = template({"compiler":[8,">= 4.3.0"],"main":function(container,depth0,helpers,partials,data) { - return ""; -},"useData":true}); -Handlebars.partials['structure/header'] = template({"compiler":[8,">= 4.3.0"],"main":function(container,depth0,helpers,partials,data) { - return "\r\n
"; -},"useData":true}); -Handlebars.partials['structure/htmlhead'] = template({"compiler":[8,">= 4.3.0"],"main":function(container,depth0,helpers,partials,data) { - return "\r\n\r\n"; -},"useData":true}); diff --git a/client/wrangler.toml b/client/wrangler.toml index f8a38ab..1724e7e 100644 --- a/client/wrangler.toml +++ b/client/wrangler.toml @@ -5,4 +5,4 @@ compatibility_date = "2024-07-11" [build] command="npm run build" -watch_dir="views/"g \ No newline at end of file +watch_dir="views/" \ No newline at end of file