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 Func <object, RenderResult> CompileTemplate(this ICakeContext ctx, string template)
 {
     ctx = ctx ?? throw new ArgumentNullException(nameof(ctx));
     return(RenderResult.FromCompiledTemplate(ctx, Hbs.Compile(template)));
 }