straightdave / eps

A templating engine for PowerShell

Home Page:http://straightdave.github.io/eps/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unbalanced brackets in template casue exception

metadatadriven opened this issue · 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 ')'.