Top Level Namespace
Defined in:
Constant Summary
-
RESERVED_PATHS =
{list: ".list", download: ".download", zip: ".zip", health: ".health"}
-
Settings =
Config.load
Method Summary
- build_dl(env)
- cart_empty?(env) : Bool
- full_path(path : String)
- full_path(env : HTTP::Server::Context)
- get_cart(env) : Array(FileSystem::FileSystemEntry)
- get_prev_folder(path)
- index_paths(paths : Array(String), depth = 0, zip_sizer = nil) : Array(FileSystem::FileSystemEntry)
- info_path(path)
- log(message, env : HTTP::Server::Context | Nil = nil)
- valid_path?(path : String)
Macro Summary
- gen_version
-
view(path)
view macro lets you specify the view to be displayed view("site/index") #=> renders src/views/site/index.slang with the src/views/layouts/layout.slang view("site/_form") => renders src/views/site/_form.slang with no layout This can be used in a view, or in a route block
Method Detail
def index_paths(paths : Array(String), depth = 0, zip_sizer = nil) : Array(FileSystem::FileSystemEntry)
#
Macro Detail
macro view(path)
#
view macro lets you specify the view to be displayed view("site/index") #=> renders src/views/site/index.slang with the src/views/layouts/layout.slang view("site/_form") => renders src/views/site/_form.slang with no layout This can be used in a view, or in a route block