module Orion::DSL::Static
Overview
The static macros allows you to bind static content to given path. You can use this for strings and/or files that will never change in a given release
Defined in:
orion/dsl/static.crMacro Summary
-
static(path = "/", *, dir)
Mount a directory of static files.
- static(*, path, string)
Macro Detail
macro static(path = "/", *, dir)
#
Mount a directory of static files.
router MyRouter do static dir: "./public", path: "/" end