Interactive books with Pollen?
#37
Open
opened 5 years ago by jenshweber
·
1 comments
Loading…
Reference in New Issue
There is no content yet.
Delete Branch '%!s(<nil>)'
Deleting a branch is permanent. It CANNOT be undone. Continue?
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.)
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.