Skip to content

IncludeAsync but truncate if too long. #532

@sybaris

Description

@sybaris

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 ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions