Skip to content

Unbalanced brackets in template casue exception #37

Description

@metadatadriven

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 ')'.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions