public static Func <object, RenderResult> CompileTemplateFromFile(this ICakeContext ctx, FilePath templateFilePath)
        {
            ctx = ctx ?? throw new ArgumentNullException(nameof(ctx));
            var file = new TemplateFileReader(ctx.FileSystem, templateFilePath);

            return(RenderResult.FromCompiledTemplate(ctx, file.CompileTemplate()));
        }
        public static RenderResult RenderTemplateFromFile(this ICakeContext ctx, FilePath templateFilePath, object data)
        {
            ctx = ctx ?? throw new ArgumentNullException(nameof(ctx));
            var file = new TemplateFileReader(ctx.FileSystem, templateFilePath);

            return(new RenderResult(ctx, file.RenderTemplate(data)));
        }