rib-0.3.0.0: Static site generator using Shake

Safe HaskellNone
LanguageHaskell2010

Rib.Server

Description

Serve generated static files with HTTP

Synopsis

Documentation

serve Source #

Arguments

:: Int

Port number to bind to

-> FilePath

Directory to serve.

-> IO () 

Run a HTTP server to serve a directory of static files

Allow URLs of the form /foo/bar to serve ${path}/foo/bar.html

getHTMLFileUrl Source #

Arguments

:: FilePath

Relative path to a page (extension is ignored)

-> Text 

Return the URL for the given .html file under serve directory

File path must be relative to the serve directory.

You may also pass source paths as long as they map directly to destination path except for file extension.