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

Reply via email to