2.5 Web IO: "web-io.rkt"

► |  | How to Design Programs Teachpacks

1 | Ht DP Teachpacks
2 | Ht DP/ 2e Teachpacks

▼ | 2 | Ht DP/ 2e Teachpacks

2.1 | Batch Input/ Output: "batch-io.rkt"
2.2 | Image Guide
2.3 | Images: "image.rkt"
2.4 | Worlds and the Universe: "universe.rkt"
2.5 | Web IO: "web-io.rkt"
2.6 | i Tunes: "itunes.rkt"
2.7 | Abstraction: "abstraction.rkt"
2.8 | Planet Cute Images
2.9 | Porting World Programs to Universe

On this page:

show-in-browser

8.15
top contents ← prev up next →

#### 2.5`` Web IO: "web-io.rkt"🔗ℹ

Matthias Felleisen

(require 2htdp/web-io) | package: htdp-lib

The teachpack provides a single function:

> procedure (show-in-browser x) → string?
> x : xexpr?

Translates the given X-expression into a String. It also has the effect of opening an external browser and displaying the X-expression rendered as XHTML.

Example

> (show-in-browser '(html (body (b "hello world"))))

Added in version 1.0 of package htdp-lib.

top contents ← prev up next →