Skip to content

[Regex] Support recursive interpolations. #15

@aercolino

Description

@aercolino

I call recursive interpolations those where some variables of a template may themselves be templates with more variables and so on, and the interpolation provides a selection of all the variables at any level (but all variables with same name are the same variable) and the substitution is carried on until all provided variables have been interpolated.

This feature will make it a no brainer to interpolate variables starting from high level templates and providing a flat list of variable definitions.

I wonder if it makes sense to preserve in the Regex all previously interpolated variables, so that when new variables are defined using templates with old variables, interpolations could take place immediately and automatically.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions