view: Generate blocks of lines and style the blocks.
authorRicardo Wurmus <rekado@elephly.net>
Thu, 7 May 2020 12:03:55 +0000 (14:03 +0200)
committerRicardo Wurmus <rekado@elephly.net>
Thu, 7 May 2020 12:03:55 +0000 (14:03 +0200)
commit52ef2529c877b2b08ac67ebee8f1842b84720e90
tree3b6790c22d20365020317310e585e7b9103a71df
parentbaae0f305f1cbbe1de0da084c6fb05a9f289571f
view: Generate blocks of lines and style the blocks.

This allows us to toggle the display of lines that belong together.

* mumi/web/view/utils.scm (<block>): New record type.
(add-block-line!): New procedure.
(process): Take the list of blocks as an argument; return the new
blocks and the next context.
(prettify): Render blocks with classes derived from the block type.
* assets/css/screen.css: Adjust.
assets/css/screen.css
mumi/web/view/utils.scm