Rista

Limits

Rista is small on purpose. These are the things it does not do.

Not supported

  • Markdown pages with params. A +page.md cannot define self.static_params. Render Markdown from a Haml page, as in Markdown.
  • Syntax highlighting. Code blocks are plain pre and code elements.
  • Named slots, parallel routes and +error pages.
  • Hydration. There is no client runtime.

Builds

  • A build is sequential and starts from scratch every time.
  • build deletes its output directory first.
  • Google Fonts are downloaded the first time a font is used, and kept in a cache after that. A machine with an empty cache, such as a CI runner, needs the network.

Things that surprise

  • Under a sub-path, a srcset written by hand, inline scripts and inline styles do not get the base path. The srcset of an imported image already has it.
  • A Haml class with no rule in the template’s stylesheet is dropped from the output, with no error. See Styling.
  • Markdown output has no scoped classes.
  • A route with params and no self.static_params fails the build.
  • A +not-found under a param directory works in serve only.