ImportingxQuiD
From xQuidWiki
To add xQuiD to your web application, an essential step is to import xQuiD kernel script. This is done by importing kernel.js in your application's head node. In the following code snippet, xQuiD is supposed to be located in the "static/js" folder relative to the page folder location or to the web application root URL:
<script language="JavaScript" type="text/javascript" src="static/js/xquid/kernel.js"></script>
xQuiD kernel offers basic functionality, so usually you will want to import some additional modules to add extra functionality to your application (like widgets, FX... or your own modules). To do this, first of all you have to specify modules base URI (for example static/js):
<meta name="kernel:baseURI" content="static/js"/>
Once you have declared your modules base URI, you can declare all your needed modules:
<meta name="kernel:import" content="xquid.draw.ui"/>
xQuiD may also parse a meta tag to be aware of the existence of an init method:
<meta name="kernel:init" content="initMyPage();"/>
So your application's head node should be similar to the following code snippet:
<html>
<head>
<title>Title of your web application</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="kernel:baseURI" content="static/js" />
<meta name="kernel:import" content="xquid.draw.ui"/>
<meta name="kernel:init" content="initMyPage();"/>
<script language="JavaScript" type="text/javascript" src="static/js/xquid/kernel.js"></script>
...
</head>
...
</html>

