Merge pull request #19 from vishesh/master

Update README for changed standalone build argument
This commit is contained in:
Jens Axel Søgaard 2015-05-14 23:55:49 +02:00
commit f5367e9631

View File

@ -29,11 +29,10 @@ amount of time.
Example usage Example usage
Create a simple, executable of your program. At the moment, the program must
Create a simple, standalong executable of your program. At the be written in the base language of whalesong. (This restriction currently
moment, the program must be written in the base language of whalesong. prevents arbitrary racket/base programs from compiling, and we'll be working to
(This restriction currently prevents arbitrary racket/base programs remove this restriction.)
from compiling, and we'll be working to remove this restriction.)
$ cat hello.rkt $ cat hello.rkt
#lang whalesong #lang whalesong
@ -42,8 +41,18 @@ from compiling, and we'll be working to remove this restriction.)
$ ./whalesong.rkt build hello.rkt $ ./whalesong.rkt build hello.rkt
$ ls -l hello.xhtml $ ls -l hello.html
-rw-rw-r-- 1 dyoo nogroup 692213 Jun 7 18:00 hello.xhtml -rw-rw-r-- 1 dyoo nogroup 692213 Jun 7 18:00 hello.html
To build standalone executable of your program, provide --as-standalone-html
flag.
$ ./whalesong.rkt build --as-standalone-html hello.rkt
$ ls -l
-rw-rw-r-- 1 dyoo nogroup 692213 Jun 7 18:00 hello.html
NOTE: Earlier versions had --as-standalone-xhtml flag, which is now removed.
[FIXME: add more examples] [FIXME: add more examples]
@ -187,4 +196,4 @@ This uses code from the following projects:
jquery (http://jquery.com/) jquery (http://jquery.com/)
[FIXME: add more] [FIXME: add more]