Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Runtime for converters with one-page application #15

Open
Drup opened this issue Sep 6, 2016 · 0 comments
Open

Runtime for converters with one-page application #15

Drup opened this issue Sep 6, 2016 · 0 comments
Labels

Comments

@Drup
Copy link
Member

Drup commented Sep 6, 2016

This is a schematic implementation of global and request fragments given converters:

type%server 'a frag = Global of int | Request of int
type%server fragment = { clojure_id : string ; args : poly array } 

Two tables, on both side

On the server side:

  • global_fragments : id_r -> fragment
  • request_fragments : id_g -> fragment

The tables are built during execution of Eliom_runtime.fragment. On the first request, both tables are sent. On subsequent requests, only request_fragments is sent.

On the client side,

  • global_fragments : id_r -> Obj.t
  • request_fragments : id_g -> Obj.t
    close_server_section populates the global table. A function in init (to be implemented) executes fragment requests and populates the fragment table.
    The deserialize function for fragments will do a lookup in the appropriate table and return the value of the fragment.
@Drup Drup added the Runtime label Sep 6, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant