Early developmentPre-1.0: syntax may change.Release historyGitHub

Application types

Static applications

Serve an existing directory of HTML, images, scripts, and other assets. A Static app serves files directly; it does not compile Rune-Web pages on each request.

#!RUNE
@App
name = My static site
type = STATIC
port = 3000
root = public

Reading the syntax

  • @App type = STATIC selects the file server. port chooses the HTTP port.
  • root = public serves the public directory relative to the working directory. Run the command from the project directory.
  • A directory request serves its index.html. Put public/index.html in place before starting the server.

Run locally

Save the config as static.rune beside a public folder containing index.html, then open http://127.0.0.1:3000/.

vectrune static.rune

To publish Rune-Web as static files, first export the page with -o html and copy its referenced assets into your output directory.

Built entirely with Rune-Web