continuing to mock up skeleton code
This commit is contained in:
parent
225ea42d0c
commit
195fbcdf74
8
web-world/impl.rkt
Normal file
8
web-world/impl.rkt
Normal file
|
@ -0,0 +1,8 @@
|
|||
#lang s-exp "../lang/js/js.rkt"
|
||||
|
||||
(declare-implementation
|
||||
#:racket "racket-impl.rkt"
|
||||
#:javascript ("js-impl.js")
|
||||
#:provided-values (big-bang
|
||||
initial-view
|
||||
stop-when))
|
|
@ -1 +1,4 @@
|
|||
#lang s-exp "../lang/base.rkt"
|
||||
|
||||
(require "impl.rkt")
|
||||
(provide (all-from-out "impl.rkt"))
|
12
web-world/racket-impl.rkt
Normal file
12
web-world/racket-impl.rkt
Normal file
|
@ -0,0 +1,12 @@
|
|||
#lang racket/base
|
||||
|
||||
(provide big-bang initial-view stop-when)
|
||||
|
||||
(define (big-bang world . handlers)
|
||||
(error 'big-bang "Please run in JavaScript context."))
|
||||
|
||||
(define (initial-view a-view-or-resource)
|
||||
(error 'initial-view "Please run in JavaScript context."))
|
||||
|
||||
(define (stop-when a-view-or-resource)
|
||||
(error 'stop-when "Please run in JavaScript context."))
|
Loading…
Reference in New Issue
Block a user