Top Level Namespace

Defined in:

Constant Summary

RESERVED_PATHS = {list: ".list", download: ".download", zip: ".zip", health: ".health"}
Settings = Config.load

Method Summary

Macro Summary

Method Detail

def build_dl(env) #

[View source]
def cart_empty?(env) : Bool #

[View source]
def full_path(path : String) #

[View source]
def full_path(env : HTTP::Server::Context) #

[View source]
def get_cart(env) : Array(FileSystem::FileSystemEntry) #

[View source]
def get_prev_folder(path) #

[View source]
def index_paths(paths : Array(String), depth = 0, zip_sizer = nil) : Array(FileSystem::FileSystemEntry) #

[View source]
def info_path(path) #

[View source]
def log(message, env : HTTP::Server::Context | Nil = nil) #

[View source]
def valid_path?(path : String) #

[View source]

Macro Detail

macro gen_version #

[View source]
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


[View source]