-
Notifications
You must be signed in to change notification settings - Fork 42
Web page generation
Daniel Hillerström edited this page Aug 8, 2019
·
1 revision
Previously Links offered two web modes: server mode and client mode. In server mode web pages were built on the server and it was not possible to generate any JavaScript in the web page. In client mode a stub was generated on the server. The stub contained JavaScript which generated the actual content of the web page dynamically using the DOM API.
Nowadays web pages are always generated on the server, but they may contain JavaScript. In particular, they may include embedded event handlers implemented by processes which are spawned on the server, serialised, and sent to the server along with the body of the web page.
In order to spawn a process on the server that needs to run on the client, use the spawnClient
keyword in place of spawn
.