|author||No'am Rosenthal <email@example.com>||2009-11-08 16:20:13 -0800|
|committer||No'am Rosenthal <firstname.lastname@example.org>||2009-11-08 16:20:13 -0800|
Basic documentation for Statechartzstatechartz
1 files changed, 30 insertions, 0 deletions
diff --git a/statechartz/doc.html b/statechartz/doc.html
new file mode 100644
@@ -0,0 +1,30 @@
+ <HEAD><TITLE>Statechartz Documentation</TITLE></HEAD>
+The Statechartz library is meant to help manage the complexity of web-apps, allowing for more dynamic web experience with less lines of code.
+Statechartz is currently only tested with webkit browsers (QtWebkit / Arora, Safari, Chrome). Other browser support might be added in time.
+<H3>Authoring using SCXML</H3>
+Note that only a subset of the SCXML standard is supported:
+The tags scxml, state, parallel, initial, final, history, transition, raise, send, if, else, elseif, script, data, and datamodel are the supported tags.
+An SCXML file can be loaded in the 2 following ways:
+<LI>Dynamically via the Statechartz.loadScxml(Document) function. This function accepts a DOM XML Document as a parameter, and returns a Statechart object. That statechart can be started with the start() function, and events can be raised to it with the raise() function.</LI>
+<LI>Statically via a link tag in the HTML head: <link rel="statechart" href="someURL.scxml"/> (See <a href="demo.html">demo.html</a>. When loaded statically, the statechart woulld be kept in document.statechart, and would start once the document is loaded.
+<H3>Connecting with HTML and CSS</H3>
+</HTML> \ No newline at end of file