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.
Currently, when using variables with components, like this:
There is literal string replacement, replacing
{{$something}}with the contents ofmyInstance:HyUI/src/main/java/au/ellie/hyui/html/TemplateProcessor.java
Line 467 in 821cc50
When
myInstanceis 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.