Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update README for changed standalone build argument #19

Merged
merged 1 commit into from
May 14, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 17 additions & 8 deletions whalesong/README
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,10 @@ amount of time.
Example usage



Create a simple, standalong executable of your program. At the
moment, the program must be written in the base language of whalesong.
(This restriction currently prevents arbitrary racket/base programs
from compiling, and we'll be working to remove this restriction.)
Create a simple, executable of your program. At the moment, the program must
be written in the base language of whalesong. (This restriction currently
prevents arbitrary racket/base programs from compiling, and we'll be working to
remove this restriction.)

$ cat hello.rkt
#lang whalesong
Expand All @@ -42,8 +41,18 @@ from compiling, and we'll be working to remove this restriction.)

$ ./whalesong.rkt build hello.rkt

$ ls -l hello.xhtml
-rw-rw-r-- 1 dyoo nogroup 692213 Jun 7 18:00 hello.xhtml
$ ls -l hello.html
-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]
Expand Down Expand Up @@ -187,4 +196,4 @@ This uses code from the following projects:
jquery (http://jquery.com/)


[FIXME: add more]
[FIXME: add more]