-
-
Notifications
You must be signed in to change notification settings - Fork 187
Open
Labels
Description
I try
class A
{
public int D1 { get; set; }
public int D2 { get; set; }
public B B { get; set; }
public IList<B> Bs { get; set; }
}
class B
{
public string W1 { get; set; }
}
var f = new FluidParser(new FluidParserOptions { AllowFunctions = true });
var temp=f.Parse("""
These shoes are awesome! {{ D1 }} {{ B.W1 }}
""");
var a = new A { D1 = 123, B = new B { W1 = "456" } };
Console.WriteLine(temp.Render(new TemplateContext(a)));dotnet runResult is These shoes are awesome! 123, but when I try dotnet publish -c Release -r win-x64 -p:PublishAot=true, result is These shoes are awesome!