src/JsRender/NodeToVala.vala
authorAlan <alan@roojs.com>
Wed, 15 Jun 2022 10:01:56 +0000 (18:01 +0800)
committerAlan <alan@roojs.com>
Wed, 15 Jun 2022 10:01:56 +0000 (18:01 +0800)
src/JsRender/NodeToVala.vala

index 5f111af..a13479d 100644 (file)
@@ -720,7 +720,10 @@ public class JsRender.NodeToVala : Object {
                        
                        if (child.has("* prop")) {
                                // fixme special packing!??!?!
-                       
+                               if (child.get_prop("* prop").val.contains("[]")) {
+                                       this.packChild(child, child.get_prop("* prop").val);
+                                       continue;
+                               }
                                this.addLine(ipad + "this.el." + child.get_prop("* prop").val + " = child_" + "%d".printf(i) + ".el;");
                                continue;
                        } 
@@ -742,7 +745,7 @@ public class JsRender.NodeToVala : Object {
                }
        }
 
-       void packChild(Node child)
+       void packChild(Node child, string prop)
        {
                // forcing no packing? - true or false? -should we just accept false?
                if (child.has("* pack") && child.get("* pack").down() == "false") {