Closed hlhielkema closed 5 years ago
The following example code was not working for me (in Stubble/docs/how-to.md): (I did not copy the code but used it as a example.)
Stubble/docs/how-to.md
var obj2 = new { Bar = "Bar", Foo = new Func<string, object>((str) => { return "Foo {{Bar}}"; }) }; stubble.Render("{{Foo}} Hello World {{/Foo}}", obj2); //Outputs: "Foo Bar"
I found in Stubble/test/Stubble.Core.Tests/StaticStubbleTest.cs that a # is required in the start tag ({{#Foo}}).
Stubble/test/Stubble.Core.Tests/StaticStubbleTest.cs
Thank you very much for raising the issue. It's been fixed now.
The following example code was not working for me (in
Stubble/docs/how-to.md
): (I did not copy the code but used it as a example.)I found in
Stubble/test/Stubble.Core.Tests/StaticStubbleTest.cs
that a # is required in the start tag ({{#Foo}}).