Skip to content

When the alt value passed to default is a lookup that isn’t found, the filter returns the text of the lookup #227

@aviflax

Description

@aviflax

Reproduction:

=> (sp/render "{{ props.docs|default:@props.notes }}"
              {:props {}})
"@props.notes"

In the templates I’m writing, I had expected the filter to return either nil or a blank string.

@yogthos I’m not sure if we should consider this a bug or a feature request, but either way, what do you think?

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