diff --git a/src/InvokePlaster.ps1 b/src/InvokePlaster.ps1 index b7651f6..4e07943 100644 --- a/src/InvokePlaster.ps1 +++ b/src/InvokePlaster.ps1 @@ -1133,6 +1133,8 @@ function Invoke-Plaster { # Eval script expression delimiters if ($content -and ($content.Count -gt 0)) { + # Sets the Variable to the currently used template + Set-Variable -Name PLASTER_TemplateFileSource -Value $srcPath -Scope Script $newContent = [regex]::Replace($content, '(<%=)(.*?)(%>)', { param($match) $expr = $match.groups[2].value