Interactive books with Pollen? #37

Open
opened 5 years ago by jenshweber · 1 comments
jenshweber commented 5 years ago (Migrated from github.com)

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.)

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 commented 5 years ago (Migrated from github.com)

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.

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](https://homes.cs.washington.edu/~sorawee/en/coq-tactics/) that is "interactive". It allows users to step through program evaluation back and forth. Here's the [JavaScript file](https://github.com/sorawee/my-website/blob/master/static/js/coq-tactics.js).
This repo is archived. You cannot comment on issues.
No Milestone
No project
No Assignees
1 Participants
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: mbutterick/pollen-users#37
Loading…
There is no content yet.