serenity-is / Serenity

Business Apps Made Simple with Asp.Net Core MVC / TypeScript
https://serenity.is
MIT License
2.59k stars 794 forks source link

Using scriban as report at production #4446

Closed rolembergfilho closed 4 years ago

rolembergfilho commented 5 years ago

Hey @volkanceylan

Scriban is amazing!

I would like to know if exists a way to use scriban in Serenity Web in production.

The purpose is generate medical prescriptions from a scriban template.

Thanks in advanced

volkanceylan commented 4 years ago

If i understand correctly, you want to use scriban instead of cshtml right? In that case, where you should change is ReportController.cs. In RenderAsHtml method, check if designAttr.Design has the extension ".scriban", if so use Scriban engine to generate the HTML.

rolembergfilho commented 4 years ago

Thanks!!!