Interface JsValidator

    • Method Detail

      • validate

        String validate​(String jsTemplate,
                        Collection<String> allowedVariables)
        Check if the the given javascript fragment has no syntax errors.
        Parameters:
        jsTemplate - The javascript template to validate.
        allowedVariables - The only set of variables that can be referenced from the JS body
        Returns:
        An error message in case an error exists, or null if everything is ok.