HyUI
HyUI copied to clipboard
Suggestion: More robust variable interpolation
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.
We're waiting on the work of #27 before doing anything else with template processor.