[Laszlo-dev] Including an instance

Rami Ojares / AMG Oy rami.ojares at archon.fi
Fri Dec 4 05:09:44 PST 2009


I tried again the following code

File fragment.lzx
-----------------
<canvas debug="true">
     <view >
         <include href="fragment1.lzx" type="text"/>
     </view>
</canvas>


File fragment1.lzx
------------------
<method name="foo" args="src">
     Debug.write("CHECK");
</method>
<handler name="oninit">
     foo();
</handler>

"CHECK" should appear in the debug window but it doesn't.
I double checked this so that I pasted the fragment1.lzx in the place of 
the include and the CHECK appeared.

My quess is that when the type is text the content is not treated as 
code anymore but somehow escaped to a string that then disappears at 
same point in the compilation.

- rami


More information about the Laszlo-dev mailing list