aboutsummaryrefslogtreecommitdiff
path: root/guix-data-service/web/render.scm
Commit message (Collapse)AuthorAge
* Add a new static-asset-from-store-renderer functionChristopher Baines2019-10-06
| | | | | | | | | | | | Previously, the assets would be served from the store normally, but this meant that they were read from disk each time, and stat calls were used to determine when they were last modified. This doesn't work for files in the store, as the timestamps are normalised, therefore add a renderer that takes advantage of the asset directory being in the store. All the files are read at startup, and then stored in memory. Also, the process start time is used as a value for the last modified header, which isn't ideal, but it's better than 1970.
* Set the Vary header to a sensible default valueChristopher Baines2019-08-05
| | | | As most pages vary based on the Accept header.
* Extract the database connection handling from the serverChristopher Baines2019-06-06
| | | | | | | | | Previously, one of the first things that happened when responding to a request was a database connection was made, even when serving the CSS. This is unnecessary, so move the database connection handling in to the controller. Also, to allow for separating it out from the assets, separate the assets out from the parts of the controller that require a database connection.
* Add #:code to render-jsonChristopher Baines2019-05-19
|
* Add #:code option to render-htmlChristopher Baines2019-05-19
|
* Enable passing extra headers for JSON responsesChristopher Baines2019-05-18
| | | | Mostly to enable passing the cache-control header.
* Initial commitChristopher Baines2019-02-07
This is a service designed to provide information about Guix. At the moment, this initial prototype gathers up information about packages, the associated metadata and derivations. The initial primary use case is to compare two different revisions of Guix, detecting which packages are new, no longer present, updated or otherwise different. It's based on the Mumi project. [1]: https://git.elephly.net/software/mumi.git