Skip to content
This repository has been archived by the owner on Sep 17, 2022. It is now read-only.

Interactive books with Pollen? #37

Open
jenshweber opened this issue Mar 29, 2020 · 1 comment
Open

Interactive books with Pollen? #37

jenshweber opened this issue Mar 29, 2020 · 1 comment

Comments

@jenshweber
Copy link

Hello, I just read through the Pollen information and I am wondering if Pollen is capable of creating interactive electronic books. I do understand (of course) that the underlying Racket system can do anything. However, I am wondering whether Pollen supports interactive books (i.e., books that allow readers to enter data that will then be processed by some Racket function and result in an update of the displayed page content.)

@sorawee
Copy link

sorawee commented Mar 29, 2020

I assume that you are targeting HTML. In that case, the "interactive" part requires JavaScript. You could either write JavaScript directly, use RacketScript (which allows you to write Racket, and it will translate the Racket code to JavaScript), or use Urlang (which allows you to create JavaScript syntax tree from Racket side).

Here's an example of my Pollen project that is "interactive". It allows users to step through program evaluation back and forth. Here's the JavaScript file.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants