155
edits
No edit summary |
No edit summary |
||
Line 21: | Line 21: | ||
</action> | </action> | ||
</animation> | </animation> | ||
== Loading external Nasal files from XML files == | |||
There is code to do this in [http://gitorious.org/fg/fgdata/blobs/master/Nasal/io.nas $FG_ROOT/Nasal/io.nas] - namely the function "load_nasal(filename, namespace)". | |||
io.nas contains some comments. Basically, this allows you to reference/load and run separate Nasal modules, without having to embed all of the code directly in the XML markup. So it's a good practice and makes things easier: | |||
<binding> | |||
<command>nasal<command> | |||
<script><![CDATA[ | |||
io.load_nasal("lsk.nas","lsk"); | |||
]]></script> | |||
</binding> | |||
--[[User:Hooray|Hooray]] 22:31, 2 December 2010 (UTC) | |||
--[[User:Hcc23|Hcc23]] 22:16, 2 December 2010 (UTC) | --[[User:Hcc23|Hcc23]] 22:16, 2 December 2010 (UTC) | ||
Line 31: | Line 43: | ||
= Generality of the CDU = | = Generality of the CDU = |
edits