Commit Graph

14 Commits

Author SHA1 Message Date
mike12345567 a506ce05a1 Fixing issue with string templates importing vm2 which requires other prebuilts for JS in the CLI - no need for these to add to build size when JS is unused. 2022-09-05 19:04:45 +01:00
mike12345567 4f2a623eb0 Initial attempt at transpiling HBS to JS. 2022-07-28 20:20:53 +01:00
Andrew Kingston 99f9b4bf07 Transform the output of JS expressions to be actual types rather than strings 2022-01-18 13:20:06 +00:00
Andrew Kingston a0d8bffbc6 Remove the pre-execution validation in string templates to double performance and prevent JS binding issues when mutating context 2021-12-06 17:58:43 +00:00
Andrew Kingston 1bd0897fd8 Block certain browser API's when executing JS in the browser 2021-10-14 12:02:34 +01:00
Andrew Kingston 403f64d1ac Use vm2 for JS execution in node, and a vm polyfill for the browser. Use 2 standalone entrypoints for string-templates depending on env 2021-10-14 11:51:05 +01:00
Andrew Kingston 0dfa108ef5 Prevent executing JS bindings when running in a Node env 2021-10-13 14:37:14 +01:00
Andrew Kingston 4075d0d97c Add one second timeout to execution of JS bindings 2021-10-13 13:44:43 +01:00
Andrew Kingston 7d7c28d967 Fix issue deeply extract falsey values from context while executing JS bindings 2021-10-12 16:13:07 +01:00
Andrew Kingston d6a1e3d248 Correctly handle JS nullish values by removing forced fallback value of HBS helper 2021-10-12 15:40:01 +01:00
Andrew Kingston 4174b88057 Ensure null or empty values don't cause raw JS to appear when executing JS HBS helper 2021-10-12 15:32:43 +01:00
Andrew Kingston b06669fe32 Fix inserting bindings manually when using JS 2021-10-11 16:18:20 +01:00
Andrew Kingston d114b3f1ed Fix bug determining if a binding is JS or not 2021-10-11 15:51:47 +01:00
Andrew Kingston 4fd31b9eac Add JS helper to string templates 2021-10-11 14:53:55 +01:00