adoconnection / RazorEngineCore

.NET6 Razor Template Engine
MIT License
565 stars 84 forks source link

HtmlSafeTemplate broken after upgrading from 2022.8.1 to 2023.11.2 #136

Closed rekna1 closed 7 months ago

rekna1 commented 7 months ago

HtmlSafeTemplate overrides some methods like public override Task WriteAsync(object obj = null) public override Task WriteAttributeValueAsync(string prefix, int prefixOffset, object value, int valueOffset, int valueLength, bool isLiteral)

but these methods do not seem to be implemented anymore by RazorEngineTemplateBase.

Is it safe to simply replace it with the non-async equivalents? Consider updating the example.

Update: seems to work...

adoconnection commented 7 months ago

Hi, yes, async methods make no sense there so I decided to remove them.

https://github.com/adoconnection/RazorEngineCore/wiki/@Raw