oxjs/readme/getting_started.html

23 lines
1 KiB
HTML
Raw Normal View History

2012-06-20 09:25:13 +00:00
<h1>Getting Started with OxJS</h1>
2012-06-23 10:53:42 +00:00
<p><pre>&lt;!DOCTYPE HTML>
&lt;html>
&lt;head>
&lt;script type="text/javascript" src="OxJS/build/Ox.js">&lt;/script>
&lt;script>
2012-06-21 16:50:14 +00:00
Ox.load(function() {
// Document ready. Your code here.
2012-06-21 16:50:14 +00:00
});
2012-06-23 10:53:42 +00:00
&lt;/script>
&lt;/head>
&lt;body>&lt;/body>
&lt;/html></pre><p>
2012-06-21 16:50:14 +00:00
<p>To include <code>Ox.UI</code>, start with <code>Ox.load('UI', function() { ... })</code>.</p>
<p>For the development version, use <code>OxJS/dev/Ox.js</code> instead.<p>
<p>If you're making changes to <code>OxJS</code> (methods, widgets, modules, etc.), make them in <code>source/</code>, not in <code>dev/</code>. <code>dev/</code> contains symlinks to <code>source/</code> (plus some json files to tell <code>Ox.load</code> which resources to include), so your edits will be live.</p>
<p>To add or remove files, or to rebuild the production version, run <code>/tools/build/build.py</code>. This will update both <code>build/</code> and <code>dev/</code> from <code>source/</code>.</p>