toddams/RazorLight

IncludeAsync but truncate if too long.

sybaris opened this issue · 0 comments

Is your feature request related to a problem? Please describe.
I use RazorLight generated reports sent by teams. My problem is I am limited in size.

Describe the solution you'd like
My template loops and call IncludeAsync on several pages. I would like to check the returned size and if it's too big, I want to replace the text by : "Message truncated (toobig). Check the file xxx to have the complete message".
Is there is an alternative to call IncludeAsync but to check before the returned size ?