{{- $content := .Inner | .Page.RenderString -}} {{- $id := partial "function/id.html" (dict "content" $content) -}} {{- $tag := .Get 1 | default "div" -}} {{- $style := .Get 0 | printf "#%s{%s}" $id -}} {{- $res := resources.FromString (printf "temp/%s.scss" $id) $style -}} {{- $res = $res | toCSS (dict "targetPath" (printf "temp/%s.css" $id)) -}} {{- printf `<%s id="%s">%s` $tag $id $content $tag | safeHTML -}}