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.cr

Macro Summary

Macro Detail

macro static(path = "/", *, dir) #

Mount a directory of static files.

router MyRouter do static dir: "./public", path: "/" end


[View source]
macro static(*, path, string) #

[View source]