class Wax::Assets
- Wax::Assets
- Reference
- Object
Included Modules
- HTTP::Handler
Defined in:
assets.crConstructors
Instance Method Summary
- #[]?(key : String)
- #call(context : HTTP::Server::Context) : Bool
- #content_cache : Hash(String, Wax::Assets::CacheEntry)
- #hash(key : String)
- #name_map : Hash(String, Wax::Assets::CacheEntry)
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)
#