Skip to content

Commit 7c08791

Browse files
author
James Brundage
committed
CSS Template Transpiler
Recursing Anonymously (re #332)
1 parent 6f5f537 commit 7c08791

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Transpilers/Templates/CSS.Template.psx.ps1

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,8 @@ process {
113113
# Then walk over each key/valye in the dictionary
114114
$innerCss = $(@(foreach ($kv in $inDictionary.GetEnumerator()) {
115115
if ($kv.Value -isnot [string]) {
116-
$kv.Key + ' ' + "$($kv.Value | ToCSS -Depth ($depth + 1))"
116+
$kv.Key + ' ' + "$($kv.Value |
117+
& $MyInvocation.MyCommand.ScriptBlock -Depth ($depth + 1))"
117118
}
118119
else {
119120
$kv.Key + ':' + $kv.Value

0 commit comments

Comments
 (0)