some updates

This commit is contained in:
Max Richter
2025-08-17 01:21:15 +02:00
parent cc8f967f07
commit 40b9be887d
7 changed files with 74 additions and 60 deletions

View File

@@ -0,0 +1,18 @@
package blocks
import (
"fmt"
"go.yaml.in/yaml/v4"
)
func (b TemplateBlock) ParseYamlBlock(input string) (key string, value any, error error) {
res := make(map[string]any)
err := yaml.Unmarshal([]byte(input), &res)
if err != nil {
return "", nil, fmt.Errorf("failed to parse yaml: %w", err)
}
return "", nil, nil
}