Skip to content

Suggestion: More robust variable interpolation #31

@petomka

Description

@petomka

Currently, when using variables with components, like this:

{{@myComponent:something:myInstance}}

There is literal string replacement, replacing {{$something}} with the contents of myInstance:

componentHtml = componentHtml.replace("{{$" + param.getKey() + "}}", value);

When myInstance is not a primitve value, this makes no sense (e.g. it is an instance of an actual object). Also, things like conditionals or loops do not work in child components.

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