eadDir (print "all-themes/" .path )) }}
      {{/* get and parse theme.toml */}}
      {{ if eq .Name "theme.toml" }}
        {{ $tomlstring := readFile $tomlpath }}
        
        {{/* stringify unquoted version values eg "min_version = 0.24.1" */}}
        {{ $tomlstring = $tomlstring | replaceRE "min_version *= *(\\d\\S*)" "min_version = \"$1\"" }}
        
        {{ $resourcepath := printf "assets/data/%s.toml" $themepath }}
        {{ $tomlresource :=  $tomlstring | resources.FromString $resourcepat