class Wax::Assets

Included Modules

Defined in:

assets.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(source : String = "assets", target : String = "public", cache_for cache_duration : Time::Span = (ENV.fetch("ASSET_CACHE_DURATION_SECONDS", "86400")).to_f.seconds) #

[View source]

Instance Method Detail

def []?(key : String) #

[View source]
def call(context : HTTP::Server::Context) : Bool #

[View source]
def content_cache : Hash(String, Wax::Assets::CacheEntry) #

[View source]
def hash(key : String) #

[View source]
def name_map : Hash(String, Wax::Assets::CacheEntry) #

[View source]