docs
This commit is contained in:
parent
46c171cf93
commit
187eb268fb
9
base/reader/reader.rkt
Normal file
9
base/reader/reader.rkt
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
#lang s-exp syntax/module-reader
|
||||||
|
|
||||||
|
;; http://docs.racket-lang.org/planet/hash-lang-planet.html
|
||||||
|
|
||||||
|
#:language (lambda (ip)
|
||||||
|
`(file ,(path->string base-lang-path)))
|
||||||
|
|
||||||
|
(require racket/runtime-path)
|
||||||
|
(define-runtime-path base-lang-path "../lang/base.rkt")
|
4
lang/whalesong.rkt
Normal file
4
lang/whalesong.rkt
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
#lang s-exp "kernel.rkt"
|
||||||
|
|
||||||
|
(require "base.rkt")
|
||||||
|
(provide (all-from-out "base.rkt"))
|
|
@ -168,7 +168,7 @@ Several things are happening here.
|
||||||
@item{We @racket[require] a few libraries to get us some additional
|
@item{We @racket[require] a few libraries to get us some additional
|
||||||
behavior; in particular, @racketmodname/this-package[web-world] to let
|
behavior; in particular, @racketmodname/this-package[web-world] to let
|
||||||
us write event-driven web-based programs, and @racketmodname/this-package[resource]
|
us write event-driven web-based programs, and @racketmodname/this-package[resource]
|
||||||
to give us access to external resources.}
|
to give us access to external @tech{resource}s.}
|
||||||
|
|
||||||
@item{We use @racket[define-resource] to refer to external files, like @filepath{index.html} that
|
@item{We use @racket[define-resource] to refer to external files, like @filepath{index.html} that
|
||||||
we'd like to include in our program.}
|
we'd like to include in our program.}
|
||||||
|
@ -209,7 +209,7 @@ provides additional information about the event that triggered the callback.
|
||||||
Start a big bang computation.
|
Start a big bang computation.
|
||||||
}
|
}
|
||||||
@defproc[(initial-view [x any]) big-bang-handler]{
|
@defproc[(initial-view [x any]) big-bang-handler]{
|
||||||
Provide an initial view for the big-bang. Normally, @racket[x] will be a resource
|
Provide an initial view for the big-bang. Normally, @racket[x] will be a @tech{resource}
|
||||||
to a web page.
|
to a web page.
|
||||||
@codeblock|{
|
@codeblock|{
|
||||||
...
|
...
|
||||||
|
|
Loading…
Reference in New Issue
Block a user