HyUI icon indicating copy to clipboard operation
HyUI copied to clipboard

Suggestion: More robust variable interpolation

Open petomka opened this issue 9 months ago • 1 comments

Currently, when using variables with components, like this:

{{@myComponent:something:myInstance}}

There is literal string replacement, replacing {{$something}} with the contents of myInstance: https://github.com/Elliesaur/HyUI/blob/821cc50a75282283a4090630ce45443300cbd496/src/main/java/au/ellie/hyui/html/TemplateProcessor.java#L467

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.

petomka avatar Feb 11 '26 11:02 petomka

We're waiting on the work of #27 before doing anything else with template processor.

Elliesaur avatar Feb 17 '26 03:02 Elliesaur