RazorLight icon indicating copy to clipboard operation
RazorLight copied to clipboard

IncludeAsync but truncate if too long.

Open sybaris opened this issue 2 years ago • 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 ?

sybaris avatar Aug 31 '23 15:08 sybaris