Unbalanced brackets in template casue exception
metadatadriven opened this issue · comments
Stuart Malcolm commented
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 ')'.