bjorkstromm / gazorator

MIT License
31 stars 9 forks source link

Allow to pass template as string #4

Closed pascalberger closed 4 years ago

pascalberger commented 5 years ago

I'm looking at replacing RazorEngine in the Cake.Issues.Reporting.Generic addin with Gazorator to allow it to target .NET Standard (https://github.com/cake-contrib/Cake.Issues.Reporting.Generic/issues/3). For this I would need to pass in the template as a string instead of the path to a template file.

Would it be possible to provide an overide of ProcessAsync (or another method) which accepts a string containing the content of the Razor template?

bjorkstromm commented 5 years ago

:+1: sounds like a great idea!

bjorkstromm commented 4 years ago

Fixed in 0.4.0