class Crack::Handler::Static

Overview

The static handler returns static assets from the configured public folder. The default public folder is ./public.

Defined in:

crack/static.cr

Constructors

Class Method Summary

Instance Method Summary

Instance methods inherited from class Crack::Handler::Base

call(context) call, config(&) config

Class methods inherited from class Crack::Handler::Base

config(&) config

Constructor Detail

def self.new #

[View source]

Class Method Detail

def self.instance #

class method to return a singleton instance of this Controller


[View source]

Instance Method Detail

def call(context) #
Description copied from class Crack::Handler::Base

Execution of this handler.


[View source]
def default_file : String #

[View source]
def default_file=(default_file : String) #

[View source]
def public_folder : String #

[View source]
def public_folder=(public_folder : String) #

[View source]