[snow-cvs] r19 - trunk/docs

Alessio Stalla astalla at common-lisp.net
Thu Nov 19 23:05:36 UTC 2009


Author: astalla
Date: Thu Nov 19 18:05:35 2009
New Revision: 19

Log:
Minor updates in the docs.


Modified:
   trunk/docs/faq.html
   trunk/docs/tutorial.html

Modified: trunk/docs/faq.html
==============================================================================
--- trunk/docs/faq.html	(original)
+++ trunk/docs/faq.html	Thu Nov 19 18:05:35 2009
@@ -38,7 +38,7 @@
 </ol>
 <a name="general" /><h2>General questions about Snow</h2>
 <a name="ch001" /><h3>So, what is Snow?</h3>
-Snow is a declarative language (DSL) targeted to build graphical user interfaces based on the Java Swing GUI library.
+Snow is a declarative language (DSL) targeted at building graphical user interfaces based on the Java Swing GUI library.
 It is somewhat similar in spirit to <a href="http://www.mozilla.org/projects/xul/">XUL</a> or <a href="http://www.swixml.org/">SwiX<sup>ml</sup></a>, while adopting a unique approach which has many advantages over XML + scripting languages. Snow is a fully interactive language - you can prototype your GUI at the read-eval-print loop and see the results immediately, without a lengthy batch compilation phase.
 <a name="ch002" /><h3>Which technologies is Snow built upon?</h3>
 Snow is written in a combination of <a href="http://java.sun.com/">Java</a> and Common Lisp (particularly its implementation

Modified: trunk/docs/tutorial.html
==============================================================================
--- trunk/docs/tutorial.html	(original)
+++ trunk/docs/tutorial.html	Thu Nov 19 18:05:35 2009
@@ -150,6 +150,8 @@
 Snow can easily be embedded in a Java application by using JSR-223. The snow.Snow class has some static methods that can be used to load some Snow source code from a .lisp file (or classpath resource), or to obtain an instance of <code>javax.script.ScriptEngine</code> which you can use for more advanced stuff (e.g. compiling Lisp code, or calling specific Lisp functions). When embedding Snow to define (part of) the application's GUI, it is recommended that you modularize the Snow code in functions, which you'll call from Java to obtain the GUI components:
 <h4><code>file.lisp</code></h4>
 <pre class="paste-area">
+(in-package :snow-user)
+
 (defun create-main-frame (&rest args)
   ...snow code...)
 </pre>




More information about the snow-cvs mailing list