Skip to content

Consider adding support for `` (backticks) as an alternate string (expression) delimiter? #559

@njreid

Description

@njreid

I find myself combining Common Expression Language (https://cel.dev/) into KDL to provide limited filtering/matching behavior.

It would be really convenient to have backticks supported as an alternative set of string delimiters, which could be used for writing expressions.

CEL is a nice fit here because it's explicitly not Turing complete, evaluates fast and has a pretty obvious/intuitive syntax for those operations it does support.

route "/" {
       allow `Authorization.username=="me@thing.com"`
       documentRoot "/var/www"
} 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions