Currently gscan will throw a ThemeValidationError when using a theme with custom Handlebars helpers, even if those helpers are added by apps.
Detailed error:
fatal: true
level: error
rule: Templates must contain valid Handlebars
message: Missing helper: "ifeq"
code: GS005-TPL-ERR
The theme works fine in development as processing is not terminated, but breaks in production. I am not sure about the good solution here.
I checked out gscan's code and it seems like lib/checks/005-template-compile.js should register the helpers from installed apps as well when running the validation. Currently, I am running a custom patched version of the spec.js file, which allows for the custom helpers.
Here is the template I am using: https://github.com/judge/security-drops
Here is the helper repo: https://github.com/felin-arch/security-drops-helpers
Currently gscan will throw a ThemeValidationError when using a theme with custom Handlebars helpers, even if those helpers are added by apps.
Detailed error:
fatal: true
level: error
rule: Templates must contain valid Handlebars
message: Missing helper: "ifeq"
code: GS005-TPL-ERR
The theme works fine in development as processing is not terminated, but breaks in production. I am not sure about the good solution here.
I checked out gscan's code and it seems like lib/checks/005-template-compile.js should register the helpers from installed apps as well when running the validation. Currently, I am running a custom patched version of the spec.js file, which allows for the custom helpers.
Here is the template I am using: https://github.com/judge/security-drops
Here is the helper repo: https://github.com/felin-arch/security-drops-helpers