Skip to content

Generic default value  #280

Open
Open
@pgeiem

Description

Currently, when trying to access an inexistent value from a template the full rendering throw an exception.
In some case with large template it would be interesting to render the template even if there is any not found values.
The not found values could then be rendered as empty string or fixed constant.

Today to get this behaviour we have to explicitly use the default function for every single variable in the template.
This could be added as an option to Environment such as set_throw_at_missing_includes

Is there any possibilities to add this function ?

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