Skip to content

Raising error on missing keys #221

@bbl

Description

@bbl

Hello!

We're using the default HTML engine middleware. We want to return an error if a variable is not passed as a parameter.
It is possible to configure this behavior with a plain text/template package using the template.Option("missingkey=error") method here.

Is there a way to raise an error if there's no variable defined using Fiber's engine?

Metadata

Metadata

Assignees

No one assigned

    Labels

    🤔 QuestionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions