You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can try to use Action<TextWriter, object> Compile(TextReader template) overload and pass TextWriter with configured IFormatProvider.
Passed TextWriter should then be used in helpers.
Activity
oformaniuk commentedon Apr 21, 2020
You can try to use
Action<TextWriter, object> Compile(TextReader template)overload and passTextWriterwith configuredIFormatProvider.Passed
TextWritershould then be used in helpers.StefH commentedon Apr 22, 2020
@zjklee Thanks for your idea.
At this moment, I solved this by adding extensions method to
TextWriter, see this code:https://github.com/StefH/Handlebars.Net.Helpers/blob/master/src/Handlebars.Net.Helpers/Extensions/TextWriterExtensions.cs
Extreme refactoring/enhancements