Sprinkles

User Guide - Baking

  • Overview
  • For Developers
  • For Authors
  • Documentation
  • Download
  • Blueprints
  • Baking

    Sprinkles can also “bake” a project into a static website, acting as a static site generator. Simple run sprinkles -bake in the project root, and sprinkles will create a static website in ./baked under the project root.

    How It Works

    In order to generate a static website, sprinkles uses the same request handling logic as it would for serving a project dynamically; it just writes the output to a file that matches the URL path, rather than sending it over HTTP. It does this recursively, that is, it starts at the project root (/), and then follows all links and references (except for those pointing to off-site locations).

    Caveats