Site Navigation
vegUISiteKit - Setting it up
written by vegu on 14 Mar, 2007 09:17:05
This is outdated as you may now use the compiled download function to confortably download any vsk library including it's dependencies , please go read this tutorial on how to do this.In order to use the VSK on your project you need to include all the required libraries in the head of your HTML - or somwhere in your page but ultimately before any code dealing with VSK is executed.
There are different modules for the VSK, and some of them depend on other modules. If you go to the page of any module you will see a list of it's dependencies. Dependencies are files that are required to be included in your page for the module to work correctly.
To include VSK files add the script tag to the head of your HTML
Example:<head>
...
<script src="vegui.sk.std.js" type="text/javascript"></script>
<script src="vegui.sk.window.js" type="text/javascript"></script>
...
</head>
Compiling libraries into one file
You might want to have all your VSK libraries in the same file.
To do this on windows boxes:
Create a batch file (*.bat) and put the following code in it:
copy /b vegui.sk.std.js +vegui.sk.window.js vegui.sk.js
This would join the files vegui.sk.std.js and vegui.sk.window.js to one file called vegui.sk.js.
To do this on linux boxesCreate command line script and put the following code in it (using bash in my example)
#!/bin/bash
cat vegui.sk.std.js vegui.sk.window.js > vegui.sk.js
This would join the files vegui.sk.std.js and vegui.sk.window.js to one file called vegui.sk.js
Then you can simply go include that one file in your HTML page :)
Related Posts
Your Comment
Comments
No comments yet.