hakyll-3.2.0.1: A static website compiler library

Hakyll.Web.Preview.Server

Description

Implements a basic static file server for previewing options

Synopsis

Documentation

staticServerSource

Arguments

:: FilePath

Directory to serve

-> (FilePath -> IO ())

Pre-serve hook

-> Int

Port to listen on

-> IO ()

Blocks forever

Main method, runs a static server in the given directory