process graphics element yaml files with scriban (#2410)

* add content rating to media item template

* process graphics element yaml files with scriban
This commit is contained in:
Jason Dove
2025-09-13 03:04:46 +00:00
committed by GitHub
parent 3722bc8c9c
commit 07a55da76e
13 changed files with 183 additions and 116 deletions
@@ -63,6 +63,13 @@ public class FakeLocalFileSystem : ILocalFileSystem
.Select(f => f.Contents)
.IfNoneAsync(string.Empty);
public async Task<string[]> ReadAllLines(string path) => await _files
.Filter(f => f.Path == path)
.HeadOrNone()
.Select(f => f.Contents)
.IfNoneAsync(string.Empty)
.Map(s => s.Split(Environment.NewLine));
public Task<byte[]> ReadAllBytes(string path) => TestBytes.AsTask();
private static List<DirectoryInfo> Split(DirectoryInfo path)