1# Obelisk.ExecutableConfig
5Obelisk.ExecutableConfig serves two related purposes:
71. Injection: a cross-platform injection function, which can be used to put configuration files in a canonical location.
82. Retrieval: a cross-platform retrieval function that is aware of the canonical location on each platform and how to read files from that location.
12| Function | iOS | Android | Warp |Web backend + GHCJS |
13|----------|:---:|:-------:|:----:|:------------------:|
14| inject | ✔ | ✔ | | ✔ |
15| get | ✔ | ✔ | ✔ | ✔ |
19`inject` is a Nix function that copies the specified configuration folder to a canonical location on the device.
21`get` is a Haskell function that retrieves configuration files from the canonical location.
25There is currently no `inject` function for `jsaddle-warp`-based frontends.
27`get` is a Haskell function that simply reads the configuration files relative to the current directory.
29### Web backend + GHCJS
33`inject` is a Haskell function that produces a snippet of HTML that must be appended to the `<head>` of the page that the backend serves (i.e., the entry point for the GHCJS application).
35`get` is a Haskell function that reads the configuration files relative to the current directory.
39`get` is a Haskell function that can be run by the GHCJS frontend to retrieve the injected configuration data from the served `<head>`. There is no `inject` that is run in GHCJS.
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list