eps icon indicating copy to clipboard operation
eps copied to clipboard

Unbalanced brackets in template casue exception

Open metadatadriven opened this issue 4 years ago • 1 comments

An unbalanced bracket in the template (not the powershell expression) causes an exception. For example, adding ( to the first example in the README:

$name = "Dave"
Invoke-EpsTemplate -Template 'Hello ( <%= $name %>!'

Results in the following:

New-EpsTemplateScript : Exception calling "Create" with "1" argument(s): "At line:2 char:7
+ [void]$(
+       ~~
$(subexpression) is missing the closing ')'.

metadatadriven avatar Sep 12 '21 19:09 metadatadriven