Spaceboy. Static
(Spaceboy v0.4.0)
View Source
Controller handling static files rendering
You are not supposed to use it directly but with Spaceboy.Router.static/3
macro which nicely wraps its functionality.
Summary
Functions
Render appropriate content for the path
Functions
@spec render(conn :: Spaceboy.Conn.t(), opts :: Keyword.t()) :: Spaceboy.Conn.t()
Render appropriate content for the path
Options
:root- filesystem root path for static files:prefix- URL prefix for the static files:ls_dir?- list files for dirs which doesn't have "index.gmi" (defaulttrue):mime- can be:guessor static MIME type for all files (default"text/gemini; charset=utf-8")